TagPrint: add "noexcept"

This commit is contained in:
Max Kellermann 2018-01-21 11:30:47 +01:00
parent 61eb2aa328
commit eac8caa4de
2 changed files with 8 additions and 8 deletions

View File

@ -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"

View File

@ -28,15 +28,15 @@ struct Tag;
class Response;
void
tag_print_types(Response &response);
tag_print_types(Response &response) noexcept;
void
tag_print(Response &response, TagType type, const char *value);
tag_print(Response &response, TagType type, const char *value) noexcept;
void
tag_print_values(Response &response, const Tag &tag);
tag_print_values(Response &response, const Tag &tag) noexcept;
void
tag_print(Response &response, const Tag &tag);
tag_print(Response &response, const Tag &tag) noexcept;
#endif