tag/ReplayGainParser: add "noexcept"

This commit is contained in:
Max Kellermann 2022-04-26 21:06:02 +02:00
parent 6e1500c251
commit 5c300a9f1a
2 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@
template<typename T>
static bool
ParseReplayGainTagTemplate(ReplayGainInfo &info, const T t)
ParseReplayGainTagTemplate(ReplayGainInfo &info, const T t) noexcept
{
const char *value;
@ -50,7 +50,8 @@ ParseReplayGainTagTemplate(ReplayGainInfo &info, const T t)
}
bool
ParseReplayGainTag(ReplayGainInfo &info, const char *name, const char *value)
ParseReplayGainTag(ReplayGainInfo &info,
const char *name, const char *value) noexcept
{
assert(name != nullptr);
assert(value != nullptr);
@ -71,7 +72,7 @@ ParseReplayGainTag(ReplayGainInfo &info, const char *name, const char *value)
}
bool
ParseReplayGainVorbis(ReplayGainInfo &info, StringView entry)
ParseReplayGainVorbis(ReplayGainInfo &info, StringView entry) noexcept
{
struct VorbisCommentEntry {
StringView entry;

View File

@ -24,9 +24,10 @@ struct StringView;
struct ReplayGainInfo;
bool
ParseReplayGainTag(ReplayGainInfo &info, const char *name, const char *value);
ParseReplayGainTag(ReplayGainInfo &info,
const char *name, const char *value) noexcept;
bool
ParseReplayGainVorbis(ReplayGainInfo &info, StringView entry);
ParseReplayGainVorbis(ReplayGainInfo &info, StringView entry) noexcept;
#endif