Instance: use C++11 initializers
This commit is contained in:
parent
1aee89f5ea
commit
8e563cbccd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue