tag/MixRamp: pass StringView to ParseMixRampVorbis()
This commit is contained in:
parent
74a883dbf8
commit
07fcf091a2
@ -67,10 +67,10 @@ ParseMixRampTag(MixRampInfo &info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ParseMixRampVorbis(MixRampInfo &info, const char *entry) noexcept
|
ParseMixRampVorbis(MixRampInfo &info, StringView entry) noexcept
|
||||||
{
|
{
|
||||||
struct VorbisCommentEntry {
|
struct VorbisCommentEntry {
|
||||||
const char *entry;
|
StringView entry;
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
StringView operator[](StringView n) const noexcept {
|
StringView operator[](StringView n) const noexcept {
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#ifndef MPD_TAG_MIXRAMP_HXX
|
#ifndef MPD_TAG_MIXRAMP_HXX
|
||||||
#define MPD_TAG_MIXRAMP_HXX
|
#define MPD_TAG_MIXRAMP_HXX
|
||||||
|
|
||||||
|
struct StringView;
|
||||||
class MixRampInfo;
|
class MixRampInfo;
|
||||||
|
|
||||||
bool
|
bool
|
||||||
@ -27,6 +28,6 @@ ParseMixRampTag(MixRampInfo &info,
|
|||||||
const char *name, const char *value) noexcept;
|
const char *name, const char *value) noexcept;
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ParseMixRampVorbis(MixRampInfo &info, const char *entry) noexcept;
|
ParseMixRampVorbis(MixRampInfo &info, StringView entry) noexcept;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user