db/Interface: GetSong() throws exception on error

This commit is contained in:
Max Kellermann
2016-03-19 00:13:57 +01:00
parent 7ad7caa2ae
commit 2fd5182608
15 changed files with 43 additions and 67 deletions

View File

@@ -111,8 +111,7 @@ static const char *uri2 = "foo/bar.ogg";
DetachedSong *
DatabaseDetachSong(gcc_unused const Database &db,
gcc_unused const Storage &_storage,
const char *uri,
gcc_unused Error &error)
const char *uri)
{
if (strcmp(uri, uri2) == 0)
return new DetachedSong(uri, MakeTag2a());