diff options
author | Max Kellermann <max@duempel.org> | 2016-04-21 14:22:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-04-21 14:22:59 +0200 |
commit | a0eb6d0976e5b5136769341f3bb3a03d096be46c (patch) | |
tree | 16c407a641a57a5c5bf279b0fd160514b040b372 /src/PlaylistFile.cxx | |
parent | 7530770842f3c780980b6dcb9f34565d5a58c673 (diff) |
PlaylistFile: use the new AllocatedPath::FromFS() range overload
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r-- | src/PlaylistFile.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index af176bf9e..dbd1a22c5 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -36,7 +36,6 @@ #include "fs/Limits.hxx" #include "fs/AllocatedPath.hxx" #include "fs/Traits.hxx" -#include "fs/Charset.hxx" #include "fs/FileSystem.hxx" #include "fs/FileInfo.hxx" #include "fs/DirectoryReader.hxx" @@ -161,8 +160,8 @@ LoadPlaylistFileInfo(PlaylistInfo &info, !fi.IsRegular()) return false; - PathTraitsFS::string name(name_fs_str, name_fs_end); - std::string name_utf8 = PathToUTF8(name.c_str()); + const auto name = AllocatedPath::FromFS(name_fs_str, name_fs_end); + std::string name_utf8 = name.ToUTF8(); if (name_utf8.empty()) return false; |