diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-14 19:42:10 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-14 19:42:48 +0200 |
commit | 07fcf091a2e33b9de0b3faf855df482e03a82223 (patch) | |
tree | 67acf9c531fbd1f2418a86009dcf8458ca9970a5 /src/tag | |
parent | 74a883dbf8ad76aa0bf9c81feab46a52548a4410 (diff) |
tag/MixRamp: pass StringView to ParseMixRampVorbis()
Diffstat (limited to 'src/tag')
-rw-r--r-- | src/tag/MixRamp.cxx | 4 | ||||
-rw-r--r-- | src/tag/MixRamp.hxx | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/tag/MixRamp.cxx b/src/tag/MixRamp.cxx index 443ccaf57..6e215d2e9 100644 --- a/src/tag/MixRamp.cxx +++ b/src/tag/MixRamp.cxx @@ -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 { diff --git a/src/tag/MixRamp.hxx b/src/tag/MixRamp.hxx index 3a58cd456..5264b7f4b 100644 --- a/src/tag/MixRamp.hxx +++ b/src/tag/MixRamp.hxx @@ -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 |