diff options
author | Max Kellermann <max@duempel.org> | 2014-02-05 17:50:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-05 17:58:13 +0100 |
commit | 4c995eb49873eac081486a94c6ed8db566248563 (patch) | |
tree | 814bca7ff2a044b94d9e929aef028f34b471e3a0 /src/db/update/Walk.hxx | |
parent | 144cfe70bfb23ac5fdf328ed8b1492374d4b21f5 (diff) | |
download | mpd-4c995eb49873eac081486a94c6ed8db566248563.tar.gz mpd-4c995eb49873eac081486a94c6ed8db566248563.tar.xz mpd-4c995eb49873eac081486a94c6ed8db566248563.zip |
db/UpdateWalk: move LocalStorage to Instance
Keep only a reference.
Diffstat (limited to 'src/db/update/Walk.hxx')
-rw-r--r-- | src/db/update/Walk.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/db/update/Walk.hxx b/src/db/update/Walk.hxx index c465ea7e1..33387ab55 100644 --- a/src/db/update/Walk.hxx +++ b/src/db/update/Walk.hxx @@ -22,7 +22,6 @@ #include "check.h" #include "Editor.hxx" -#include "storage/LocalStorage.hxx" #include <sys/stat.h> @@ -30,6 +29,7 @@ struct stat; struct FileInfo; struct Directory; struct archive_plugin; +class LocalStorage; class ExcludeList; class UpdateWalk final { @@ -48,12 +48,13 @@ class UpdateWalk final { bool walk_discard; bool modified; - LocalStorage storage; + LocalStorage &storage; DatabaseEditor editor; public: - UpdateWalk(EventLoop &_loop, DatabaseListener &_listener); + UpdateWalk(EventLoop &_loop, DatabaseListener &_listener, + LocalStorage &_storage); /** * Returns true if the database was modified. |