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

@@ -31,6 +31,7 @@ class NeighborGlue;
#ifdef ENABLE_DATABASE
#include "db/DatabaseListener.hxx"
class Database;
class LocalStorage;
class UpdateService;
#endif
@@ -62,6 +63,8 @@ struct Instance final
#ifdef ENABLE_DATABASE
Database *database;
LocalStorage *storage;
UpdateService *update;
#endif
@@ -71,6 +74,7 @@ struct Instance final
Instance() {
#ifdef ENABLE_DATABASE
storage = nullptr;
update = nullptr;
#endif
}