diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index 31eec79fa..bb995b1c3 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -27,7 +27,6 @@ #include "util/OffsetPointer.hxx" #include "util/ScopeExit.hxx" #include "util/StringCompare.hxx" -#include "util/StringView.hxx" #include "util/UriExtract.hxx" #include "tag/Handler.hxx" #include "tag/Generic.hxx" diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index aa99ad620..3bf33a9d9 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -37,7 +37,6 @@ #include "time/ChronoUtil.hxx" #include "util/UriUtil.hxx" #include "util/StringAPI.hxx" -#include "util/StringView.hxx" #include "fs/AllocatedPath.hxx" #include "Stats.hxx" #include "PlaylistFile.hxx" diff --git a/src/config/Path.cxx b/src/config/Path.cxx index 9639e884b..b2fad87ed 100644 --- a/src/config/Path.cxx +++ b/src/config/Path.cxx @@ -23,7 +23,7 @@ #include "fs/Traits.hxx" #include "fs/StandardDirectory.hxx" #include "util/RuntimeError.hxx" -#include "util/StringView.hxx" +#include "util/StringSplit.hxx" #include @@ -101,8 +101,7 @@ ParsePath(const char *path) return GetConfiguredHome() / AllocatedPath::FromUTF8Throw(path); } else { - const auto [user, rest] = - StringView{path}.Split('/'); + const auto [user, rest] = Split(std::string_view{path}, '/'); return GetHome(std::string{user}.c_str()) / AllocatedPath::FromUTF8Throw(rest);