TagPrint: add "noexcept"
This commit is contained in:
parent
61eb2aa328
commit
eac8caa4de
|
@ -24,7 +24,7 @@
|
||||||
#include "client/Response.hxx"
|
#include "client/Response.hxx"
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print_types(Response &r)
|
tag_print_types(Response &r) noexcept
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++)
|
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++)
|
||||||
if (IsTagEnabled(i))
|
if (IsTagEnabled(i))
|
||||||
|
@ -32,13 +32,13 @@ tag_print_types(Response &r)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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);
|
r.Format("%s: %s\n", tag_item_names[type], value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print_values(Response &r, const Tag &tag)
|
tag_print_values(Response &r, const Tag &tag) noexcept
|
||||||
{
|
{
|
||||||
const auto tag_mask = r.GetTagMask();
|
const auto tag_mask = r.GetTagMask();
|
||||||
for (const auto &i : tag)
|
for (const auto &i : tag)
|
||||||
|
@ -47,7 +47,7 @@ tag_print_values(Response &r, const Tag &tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print(Response &r, const Tag &tag)
|
tag_print(Response &r, const Tag &tag) noexcept
|
||||||
{
|
{
|
||||||
if (!tag.duration.IsNegative())
|
if (!tag.duration.IsNegative())
|
||||||
r.Format("Time: %i\n"
|
r.Format("Time: %i\n"
|
||||||
|
|
|
@ -28,15 +28,15 @@ struct Tag;
|
||||||
class Response;
|
class Response;
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print_types(Response &response);
|
tag_print_types(Response &response) noexcept;
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print(Response &response, TagType type, const char *value);
|
tag_print(Response &response, TagType type, const char *value) noexcept;
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print_values(Response &response, const Tag &tag);
|
tag_print_values(Response &response, const Tag &tag) noexcept;
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_print(Response &response, const Tag &tag);
|
tag_print(Response &response, const Tag &tag) noexcept;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue