summaryrefslogtreecommitdiff
path: root/src/Instance.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-10-26 18:52:00 +0200
committerMax Kellermann <max@musicpd.org>2016-10-26 18:52:00 +0200
commit8d41e9658fc57eabc8978a9100bdaa8c7a9c5aa9 (patch)
treebfa0e3625f8ef043f49ffcb3c46ea7205c16cb54 /src/Instance.hxx
parent086652dd505285695418f46d83d18a82679ace37 (diff)
Instance: remove Error parameter from GetDatabase()
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r--src/Instance.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx
index f5cada618..ed220b794 100644
--- a/src/Instance.hxx
+++ b/src/Instance.hxx
@@ -109,7 +109,9 @@ struct Instance final
* if this MPD configuration has no database (no
* music_directory was configured).
*/
- Database *GetDatabase(Error &error);
+ Database *GetDatabase() {
+ return database;
+ }
/**
* Returns the global #Database instance. Throws