db/simple/Song: pass std::string_view to Load{File,FromArchive}()

This commit is contained in:
Max Kellermann
2023-04-30 08:18:57 +02:00
parent 99885c4cbc
commit 434bcb08ee
2 changed files with 6 additions and 6 deletions

View File

@@ -105,7 +105,7 @@ struct Song : IntrusiveListHook<> {
* @return the song on success, nullptr if the file was not
* recognized
*/
static SongPtr LoadFile(Storage &storage, const char *name_utf8,
static SongPtr LoadFile(Storage &storage, std::string_view name_utf8,
Directory &parent);
/**
@@ -117,7 +117,7 @@ struct Song : IntrusiveListHook<> {
#ifdef ENABLE_ARCHIVE
static SongPtr LoadFromArchive(ArchiveFile &archive,
const char *name_utf8,
std::string_view name_utf8,
Directory &parent) noexcept;
bool UpdateFileInArchive(ArchiveFile &archive) noexcept;
#endif