Commit 3f899f83 authored by Max Kellermann's avatar Max Kellermann

Playlist*, Queue: use GetDatabase() overload without Error

Don't use IgnoreError() when there's an overload that does not try to give us one.
parent fc057683
...@@ -115,7 +115,7 @@ playlist::AppendURI(struct player_control &pc, ...@@ -115,7 +115,7 @@ playlist::AppendURI(struct player_control &pc,
if (uri_has_scheme(uri)) { if (uri_has_scheme(uri)) {
song = Song::NewRemote(uri); song = Song::NewRemote(uri);
} else { } else {
db = GetDatabase(IgnoreError()); db = GetDatabase();
if (db == nullptr) if (db == nullptr)
return PlaylistResult::NO_SUCH_SONG; return PlaylistResult::NO_SUCH_SONG;
......
...@@ -115,7 +115,7 @@ playlist_print_changes_position(Client &client, ...@@ -115,7 +115,7 @@ playlist_print_changes_position(Client &client,
static bool static bool
PrintSongDetails(Client &client, const char *uri_utf8) PrintSongDetails(Client &client, const char *uri_utf8)
{ {
const Database *db = GetDatabase(IgnoreError()); const Database *db = GetDatabase();
if (db == nullptr) if (db == nullptr)
return false; return false;
......
...@@ -104,7 +104,7 @@ playlist_check_load_song(const Song *song, const char *uri, bool secure) ...@@ -104,7 +104,7 @@ playlist_check_load_song(const Song *song, const char *uri, bool secure)
if (dest == nullptr) if (dest == nullptr)
return nullptr; return nullptr;
} else { } else {
const Database *db = GetDatabase(IgnoreError()); const Database *db = GetDatabase();
if (db == nullptr) if (db == nullptr)
return nullptr; return nullptr;
......
...@@ -114,7 +114,7 @@ queue_load_song(TextFile &file, const char *line, queue &queue) ...@@ -114,7 +114,7 @@ queue_load_song(TextFile &file, const char *line, queue &queue)
if (uri_has_scheme(uri)) { if (uri_has_scheme(uri)) {
song = Song::NewRemote(uri); song = Song::NewRemote(uri);
} else { } else {
db = GetDatabase(IgnoreError()); db = GetDatabase();
if (db == nullptr) if (db == nullptr)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment