From eac8caa4de8ac03c2850de3ef56d2c259b96adf1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 21 Jan 2018 11:30:47 +0100 Subject: [PATCH] TagPrint: add "noexcept" --- src/TagPrint.cxx | 8 ++++---- src/TagPrint.hxx | 8 ++++---- 2 files changed, 8 insertions(+), 8 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" diff --git a/src/TagPrint.hxx b/src/TagPrint.hxx index 2faf09099..45c8265ea 100644 --- a/src/TagPrint.hxx +++ b/src/TagPrint.hxx @@ -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