DatabaseGlue: make GetDatabase() "gcc_const"
This variable is initialized once on startup. It will never change.
This commit is contained in:
parent
529b4bd185
commit
6396e23a2a
@ -44,7 +44,7 @@ DatabaseGlobalOpen(Error &error);
|
|||||||
* Returns the global #Database instance. May return nullptr if this MPD
|
* Returns the global #Database instance. May return nullptr if this MPD
|
||||||
* configuration has no database (no music_directory was configured).
|
* configuration has no database (no music_directory was configured).
|
||||||
*/
|
*/
|
||||||
gcc_pure
|
gcc_const
|
||||||
const Database *
|
const Database *
|
||||||
GetDatabase();
|
GetDatabase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user