aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongLoader.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/SongLoader.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SongLoader.cxx b/src/SongLoader.cxx
index 90df42824..08aa01296 100644
--- a/src/SongLoader.cxx
+++ b/src/SongLoader.cxx
@@ -33,6 +33,13 @@
#include <assert.h>
#include <string.h>
+#ifdef ENABLE_DATABASE
+
+SongLoader::SongLoader(const Client &_client)
+ :client(&_client), db(_client.GetDatabase(IgnoreError())) {}
+
+#endif
+
DetachedSong *
SongLoader::LoadFile(const char *path_utf8, Error &error) const
{