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> template<typename T>
static bool static bool
ParseMixRampTagTemplate(MixRampInfo &info, const T t) ParseMixRampTagTemplate(MixRampInfo &info, const T t) noexcept
{ {
const auto start = t["mixramp_start"]; const auto start = t["mixramp_start"];
if (!start.IsNull()) { if (!start.IsNull()) {
@ -45,7 +45,8 @@ ParseMixRampTagTemplate(MixRampInfo &info, const T t)
} }
bool bool
ParseMixRampTag(MixRampInfo &info, const char *name, const char *value) ParseMixRampTag(MixRampInfo &info,
const char *name, const char *value) noexcept
{ {
assert(name != nullptr); assert(name != nullptr);
assert(value != nullptr); assert(value != nullptr);
@ -66,7 +67,7 @@ ParseMixRampTag(MixRampInfo &info, const char *name, const char *value)
} }
bool bool
ParseMixRampVorbis(MixRampInfo &info, const char *entry) ParseMixRampVorbis(MixRampInfo &info, const char *entry) noexcept
{ {
struct VorbisCommentEntry { struct VorbisCommentEntry {
const char *entry; const char *entry;

View File

@ -23,9 +23,10 @@
class MixRampInfo; class MixRampInfo;
bool bool
ParseMixRampTag(MixRampInfo &info, const char *name, const char *value); ParseMixRampTag(MixRampInfo &info,
const char *name, const char *value) noexcept;
bool bool
ParseMixRampVorbis(MixRampInfo &info, const char *entry); ParseMixRampVorbis(MixRampInfo &info, const char *entry) noexcept;
#endif #endif