Instance: use C++11 initializers

This commit is contained in:
Max Kellermann 2016-03-05 18:55:39 +01:00
parent 1aee89f5ea
commit 8e563cbccd
1 changed files with 2 additions and 9 deletions

View File

@ -67,22 +67,15 @@ struct Instance final
* This is really a #CompositeStorage. To avoid heavy include
* dependencies, we declare it as just #Storage.
*/
Storage *storage;
Storage *storage = nullptr;
UpdateService *update;
UpdateService *update = nullptr;
#endif
ClientList *client_list;
Partition *partition;
Instance() {
#ifdef ENABLE_DATABASE
storage = nullptr;
update = nullptr;
#endif
}
#ifdef ENABLE_DATABASE
/**
* Returns the global #Database instance. May return nullptr