db/Interface: pass std::string_view to GetSong()

This commit is contained in:
Max Kellermann
2020-04-03 16:33:45 +02:00
parent 212401d687
commit 57fb153c5d
6 changed files with 13 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ public:
* directory (UTF-8)
* @return a pointer that must be released with ReturnSong()
*/
virtual const LightSong *GetSong(const char *uri_utf8) const = 0;
virtual const LightSong *GetSong(std::string_view uri_utf8) const = 0;
/**
* Mark the song object as "unused". Call this on objects