aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Walk.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 17:50:04 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 17:58:13 +0100
commit4c995eb49873eac081486a94c6ed8db566248563 (patch)
tree814bca7ff2a044b94d9e929aef028f34b471e3a0 /src/db/update/Walk.cxx
parent144cfe70bfb23ac5fdf328ed8b1492374d4b21f5 (diff)
downloadmpd-4c995eb49873eac081486a94c6ed8db566248563.tar.gz
mpd-4c995eb49873eac081486a94c6ed8db566248563.tar.xz
mpd-4c995eb49873eac081486a94c6ed8db566248563.zip
db/UpdateWalk: move LocalStorage to Instance
Keep only a reference.
Diffstat (limited to '')
-rw-r--r--src/db/update/Walk.cxx7
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