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