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

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