Commit a0eb6d09 authored by Max Kellermann's avatar Max Kellermann

PlaylistFile: use the new AllocatedPath::FromFS() range overload

parent 75307708
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment