From 6396e23a2a0446093e995e563bd447d99c14b22a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 24 Nov 2013 22:04:41 +0100 Subject: DatabaseGlue: make GetDatabase() "gcc_const" This variable is initialized once on startup. It will never change. --- src/DatabaseGlue.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3