From cf6281a5a758e4b93d67f7fd5804a8cff60ddbf9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Feb 2014 00:26:34 +0100 Subject: Instance: add Database attribute Move from db/DatabaseGlue.cxx, eliminating global variable. --- src/db/DatabaseQueue.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/db/DatabaseQueue.cxx') diff --git a/src/db/DatabaseQueue.cxx b/src/db/DatabaseQueue.cxx index ee1dbd57c..f2a0951a6 100644 --- a/src/db/DatabaseQueue.cxx +++ b/src/db/DatabaseQueue.cxx @@ -22,6 +22,7 @@ #include "DatabaseGlue.hxx" #include "DatabasePlugin.hxx" #include "Partition.hxx" +#include "Instance.hxx" #include "util/Error.hxx" #include "DetachedSong.hxx" #include "Mapper.hxx" @@ -47,7 +48,7 @@ bool AddFromDatabase(Partition &partition, const DatabaseSelection &selection, Error &error) { - const Database *db = GetDatabase(error); + const Database *db = partition.instance.GetDatabase(error); if (db == nullptr) return false; -- cgit v1.2.3