diff options
author | Max Kellermann <max@duempel.org> | 2014-02-27 19:29:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-27 19:29:10 +0100 |
commit | d64edb68966ebba3b15a5c3c5fb863db73f1aec3 (patch) | |
tree | 3b7a5faff5edf0933ddb84a787848a4af481d243 /src/db/plugins | |
parent | 3f9ad8e104887bac46e778b0ee4c9ea298a488aa (diff) | |
download | mpd-d64edb68966ebba3b15a5c3c5fb863db73f1aec3.tar.gz mpd-d64edb68966ebba3b15a5c3c5fb863db73f1aec3.tar.xz mpd-d64edb68966ebba3b15a5c3c5fb863db73f1aec3.zip |
db/simple: GetRoot() returns reference
Diffstat (limited to '')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.hxx b/src/db/plugins/simple/SimpleDatabasePlugin.hxx index 40d870460..9836a6bcf 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.hxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.hxx @@ -58,10 +58,10 @@ public: Error &error); gcc_pure - Directory *GetRoot() { + Directory &GetRoot() { assert(root != NULL); - return root; + return *root; } bool Save(Error &error); |