tag/ReplayGainParser: use std::string_view
This commit is contained in:
parent
11135b48e6
commit
a7b7e35512
|
@ -22,7 +22,6 @@
|
|||
#include "ReplayGainInfo.hxx"
|
||||
#include "util/ASCII.hxx"
|
||||
#include "util/NumberParser.hxx"
|
||||
#include "util/StringView.hxx"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
@ -72,7 +71,7 @@ ParseReplayGainTag(ReplayGainInfo &info,
|
|||
}
|
||||
|
||||
bool
|
||||
ParseReplayGainVorbis(ReplayGainInfo &info, StringView entry) noexcept
|
||||
ParseReplayGainVorbis(ReplayGainInfo &info, std::string_view entry) noexcept
|
||||
{
|
||||
struct VorbisCommentEntry {
|
||||
std::string_view entry;
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
#ifndef MPD_TAG_REPLAY_GAIN_HXX
|
||||
#define MPD_TAG_REPLAY_GAIN_HXX
|
||||
|
||||
struct StringView;
|
||||
#include <string_view>
|
||||
|
||||
struct ReplayGainInfo;
|
||||
|
||||
bool
|
||||
|
@ -28,6 +29,6 @@ ParseReplayGainTag(ReplayGainInfo &info,
|
|||
const char *name, const char *value) noexcept;
|
||||
|
||||
bool
|
||||
ParseReplayGainVorbis(ReplayGainInfo &info, StringView entry) noexcept;
|
||||
ParseReplayGainVorbis(ReplayGainInfo &info, std::string_view entry) noexcept;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue