db,storage: pass std::string_view to PathTraits::Build()
This commit is contained in:
@@ -41,7 +41,7 @@ Song::GetURI() const noexcept
|
||||
return filename;
|
||||
else {
|
||||
const char *path = parent.GetPath();
|
||||
return PathTraitsUTF8::Build(path, filename.c_str());
|
||||
return PathTraitsUTF8::Build(path, filename);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -397,8 +397,7 @@ UpnpDatabase::BuildPath(const ContentDirectoryService &server,
|
||||
if (path.empty())
|
||||
path = dirent.name;
|
||||
else
|
||||
path = PathTraitsUTF8::Build(dirent.name.c_str(),
|
||||
path.c_str());
|
||||
path = PathTraitsUTF8::Build(dirent.name, path);
|
||||
}
|
||||
|
||||
return PathTraitsUTF8::Build(server.getFriendlyName(),
|
||||
|
||||
@@ -322,7 +322,7 @@ UpdateWalk::UpdateDirectory(Directory &directory,
|
||||
|
||||
try {
|
||||
Mutex mutex;
|
||||
auto is = InputStream::OpenReady(PathTraitsUTF8::Build(storage.MapUTF8(directory.GetPath()).c_str(),
|
||||
auto is = InputStream::OpenReady(PathTraitsUTF8::Build(storage.MapUTF8(directory.GetPath()),
|
||||
".mpdignore").c_str(),
|
||||
mutex);
|
||||
child_exclude_list.Load(std::move(is));
|
||||
|
||||
Reference in New Issue
Block a user