Instance: use C++11 initializers
This commit is contained in:
@@ -67,22 +67,15 @@ struct Instance final
|
|||||||
* This is really a #CompositeStorage. To avoid heavy include
|
* This is really a #CompositeStorage. To avoid heavy include
|
||||||
* dependencies, we declare it as just #Storage.
|
* dependencies, we declare it as just #Storage.
|
||||||
*/
|
*/
|
||||||
Storage *storage;
|
Storage *storage = nullptr;
|
||||||
|
|
||||||
UpdateService *update;
|
UpdateService *update = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ClientList *client_list;
|
ClientList *client_list;
|
||||||
|
|
||||||
Partition *partition;
|
Partition *partition;
|
||||||
|
|
||||||
Instance() {
|
|
||||||
#ifdef ENABLE_DATABASE
|
|
||||||
storage = nullptr;
|
|
||||||
update = nullptr;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef ENABLE_DATABASE
|
#ifdef ENABLE_DATABASE
|
||||||
/**
|
/**
|
||||||
* Returns the global #Database instance. May return nullptr
|
* Returns the global #Database instance. May return nullptr
|
||||||
|
Reference in New Issue
Block a user