diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-21 11:30:47 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-21 11:30:47 +0100 |
commit | eac8caa4de8ac03c2850de3ef56d2c259b96adf1 (patch) | |
tree | a377674c9a2a7962e60296f7c9374a204eeb2e1d /src/TagPrint.cxx | |
parent | 61eb2aa328aa2ae231b84e53914693f3e56021e5 (diff) |
TagPrint: add "noexcept"
Diffstat (limited to 'src/TagPrint.cxx')
-rw-r--r-- | src/TagPrint.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx index 61d86a12e..843139157 100644 --- a/src/TagPrint.cxx +++ b/src/TagPrint.cxx @@ -24,7 +24,7 @@ #include "client/Response.hxx" void -tag_print_types(Response &r) +tag_print_types(Response &r) noexcept { for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) if (IsTagEnabled(i)) @@ -32,13 +32,13 @@ tag_print_types(Response &r) } void -tag_print(Response &r, TagType type, const char *value) +tag_print(Response &r, TagType type, const char *value) noexcept { r.Format("%s: %s\n", tag_item_names[type], value); } void -tag_print_values(Response &r, const Tag &tag) +tag_print_values(Response &r, const Tag &tag) noexcept { const auto tag_mask = r.GetTagMask(); for (const auto &i : tag) @@ -47,7 +47,7 @@ tag_print_values(Response &r, const Tag &tag) } void -tag_print(Response &r, const Tag &tag) +tag_print(Response &r, const Tag &tag) noexcept { if (!tag.duration.IsNegative()) r.Format("Time: %i\n" |