SongLoader: move code to LoadFromDatabase()

Avoids the recursion in LoadFile().
This commit is contained in:
Max Kellermann
2015-10-22 09:34:13 +02:00
parent bea5973e0c
commit 1a5b66b78d
2 changed files with 20 additions and 10 deletions

View File

@@ -70,6 +70,9 @@ public:
DetachedSong *LoadSong(const char *uri_utf8, Error &error) const;
private:
gcc_nonnull_all
DetachedSong *LoadFromDatabase(const char *uri, Error &error) const;
gcc_nonnull_all
DetachedSong *LoadFile(const char *path_utf8, Error &error) const;
};