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(),
|
||||
|
||||
Reference in New Issue
Block a user