tag/MixRamp: pass StringView to ParseMixRampVorbis()

This commit is contained in:
Max Kellermann 2019-08-14 19:42:10 +02:00
parent 74a883dbf8
commit 07fcf091a2
2 changed files with 4 additions and 3 deletions

View File

@ -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 {

View File

@ -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