tag/MixRamp: add noexcept

This commit is contained in:
Max Kellermann 2019-08-14 19:42:28 +02:00
parent 5c550e8b33
commit 74a883dbf8
2 changed files with 7 additions and 5 deletions

View File

@ -27,7 +27,7 @@
template<typename T>
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;

View File

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