From 74a883dbf8ad76aa0bf9c81feab46a52548a4410 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Aug 2019 19:42:28 +0200 Subject: [PATCH] tag/MixRamp: add `noexcept` --- src/tag/MixRamp.cxx | 7 ++++--- src/tag/MixRamp.hxx | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tag/MixRamp.cxx b/src/tag/MixRamp.cxx index 876061410..443ccaf57 100644 --- a/src/tag/MixRamp.cxx +++ b/src/tag/MixRamp.cxx @@ -27,7 +27,7 @@ template static bool -ParseMixRampTagTemplate(MixRampInfo &info, const T t) +ParseMixRampTagTemplate(MixRampInfo &info, const T t) noexcept { const auto start = t["mixramp_start"]; if (!start.IsNull()) { @@ -45,7 +45,8 @@ ParseMixRampTagTemplate(MixRampInfo &info, const T t) } bool -ParseMixRampTag(MixRampInfo &info, const char *name, const char *value) +ParseMixRampTag(MixRampInfo &info, + const char *name, const char *value) noexcept { assert(name != nullptr); assert(value != nullptr); @@ -66,7 +67,7 @@ ParseMixRampTag(MixRampInfo &info, const char *name, const char *value) } bool -ParseMixRampVorbis(MixRampInfo &info, const char *entry) +ParseMixRampVorbis(MixRampInfo &info, const char *entry) noexcept { struct VorbisCommentEntry { const char *entry; diff --git a/src/tag/MixRamp.hxx b/src/tag/MixRamp.hxx index a7e8e38a1..3a58cd456 100644 --- a/src/tag/MixRamp.hxx +++ b/src/tag/MixRamp.hxx @@ -23,9 +23,10 @@ class MixRampInfo; bool -ParseMixRampTag(MixRampInfo &info, const char *name, const char *value); +ParseMixRampTag(MixRampInfo &info, + const char *name, const char *value) noexcept; bool -ParseMixRampVorbis(MixRampInfo &info, const char *entry); +ParseMixRampVorbis(MixRampInfo &info, const char *entry) noexcept; #endif