tag/MixRamp: pass StringView to ParseMixRampVorbis()
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user