db/UpdateWalk: move LocalStorage to Instance

Keep only a reference.
This commit is contained in:
Max Kellermann
2014-02-05 17:50:04 +01:00
parent 144cfe70bf
commit 4c995eb498
8 changed files with 21 additions and 7 deletions

View File

@@ -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