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