Commit 8e563cbc authored by Max Kellermann's avatar Max Kellermann

Instance: use C++11 initializers

parent 1aee89f5
...@@ -67,22 +67,15 @@ struct Instance final ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment