diff options
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.hxx | 4 | ||||
-rw-r--r-- | src/db/update/Service.cxx | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/src/db/update/Service.cxx b/src/db/update/Service.cxx index 0c93ce36e..2971998e4 100644 --- a/src/db/update/Service.cxx +++ b/src/db/update/Service.cxx @@ -84,7 +84,7 @@ UpdateService::Task() SetThreadIdlePriority(); - modified = walk->Walk(*db.GetRoot(), next.path_utf8.c_str(), + modified = walk->Walk(db.GetRoot(), next.path_utf8.c_str(), next.discard); if (modified || !db.FileExists()) { |