aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker/SongSticker.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 01:15:08 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 01:15:08 +0100
commit9c637df77ec245518922c5aeb076ae52c89598d0 (patch)
tree904a90b1135d070347c1e2ff0e935ccbada358cc /src/sticker/SongSticker.cxx
parent29072797ca5a397b2878e458db22cb5dcc7dfe4d (diff)
downloadmpd-9c637df77ec245518922c5aeb076ae52c89598d0.tar.gz
mpd-9c637df77ec245518922c5aeb076ae52c89598d0.tar.xz
mpd-9c637df77ec245518922c5aeb076ae52c89598d0.zip
SongSticker: add Database reference parameter
Diffstat (limited to '')
-rw-r--r--src/sticker/SongSticker.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sticker/SongSticker.cxx b/src/sticker/SongSticker.cxx
index 4bcc8979f..7246ec69f 100644
--- a/src/sticker/SongSticker.cxx
+++ b/src/sticker/SongSticker.cxx
@@ -21,7 +21,6 @@
#include "SongSticker.hxx"
#include "StickerDatabase.hxx"
#include "db/LightSong.hxx"
-#include "db/DatabaseGlue.hxx"
#include "db/DatabasePlugin.hxx"
#include "util/Error.hxx"
@@ -95,15 +94,13 @@ sticker_song_find_cb(const char *uri, const char *value, void *user_data)
}
bool
-sticker_song_find(const char *base_uri, const char *name,
+sticker_song_find(const Database &db, const char *base_uri, const char *name,
void (*func)(const LightSong &song, const char *value,
void *user_data),
void *user_data)
{
struct sticker_song_find_data data;
- data.db = GetDatabase();
- assert(data.db != nullptr);
-
+ data.db = &db;
data.func = func;
data.user_data = user_data;