tag/ReplayGainParser: use std::string_view

This commit is contained in:
Max Kellermann 2022-06-30 10:59:37 +02:00
parent 11135b48e6
commit a7b7e35512
2 changed files with 4 additions and 4 deletions

View File

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

View File

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