aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseGlue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-24 22:04:41 +0100
committerMax Kellermann <max@duempel.org>2013-11-24 22:04:45 +0100
commit6396e23a2a0446093e995e563bd447d99c14b22a (patch)
tree8e6f2493f024b9b53772b01ee230218ce59a656a /src/DatabaseGlue.hxx
parent529b4bd185eb130580c09c24450d80d62c9ae769 (diff)
downloadmpd-6396e23a2a0446093e995e563bd447d99c14b22a.tar.gz
mpd-6396e23a2a0446093e995e563bd447d99c14b22a.tar.xz
mpd-6396e23a2a0446093e995e563bd447d99c14b22a.zip
DatabaseGlue: make GetDatabase() "gcc_const"
This variable is initialized once on startup. It will never change.
Diffstat (limited to 'src/DatabaseGlue.hxx')
-rw-r--r--src/DatabaseGlue.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DatabaseGlue.hxx b/src/DatabaseGlue.hxx
index bc05942e0..725aa302a 100644
--- a/src/DatabaseGlue.hxx
+++ b/src/DatabaseGlue.hxx
@@ -44,7 +44,7 @@ DatabaseGlobalOpen(Error &error);
* Returns the global #Database instance. May return nullptr if this MPD
* configuration has no database (no music_directory was configured).
*/
-gcc_pure
+gcc_const
const Database *
GetDatabase();