tag/MixRamp: [[gnu::...]] attributes

This commit is contained in:
Max Kellermann 2021-12-01 15:48:23 +01:00
parent 6009d4abab
commit a45949b597

View File

@ -55,7 +55,7 @@ ParseMixRampTag(MixRampInfo &info,
const char *name;
const char *value;
gcc_pure
[[gnu::pure]]
StringView operator[](const char *n) const noexcept {
return StringEqualsCaseASCII(name, n)
? value
@ -72,7 +72,7 @@ ParseMixRampVorbis(MixRampInfo &info, StringView entry) noexcept
struct VorbisCommentEntry {
StringView entry;
gcc_pure
[[gnu::pure]]
StringView operator[](StringView n) const noexcept {
return GetVorbisCommentValue(entry, n);
}