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.cxx | |
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.cxx')
-rw-r--r-- | src/db/update/Walk.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx index e6bfdcfd9..d8b998f9e 100644 --- a/src/db/update/Walk.cxx +++ b/src/db/update/Walk.cxx @@ -27,6 +27,7 @@ #include "db/Song.hxx" #include "db/PlaylistVector.hxx" #include "db/Uri.hxx" +#include "storage/LocalStorage.hxx" #include "playlist/PlaylistRegistry.hxx" #include "Mapper.hxx" #include "ExcludeList.hxx" @@ -47,9 +48,9 @@ #include <stdlib.h> #include <errno.h> -UpdateWalk::UpdateWalk(EventLoop &_loop, DatabaseListener &_listener) - :storage(mapper_get_music_directory_utf8(), - mapper_get_music_directory_fs()), +UpdateWalk::UpdateWalk(EventLoop &_loop, DatabaseListener &_listener, + LocalStorage &_storage) + :storage(_storage), editor(_loop, _listener) { #ifndef WIN32 |