diff options
author | Max Kellermann <max@duempel.org> | 2016-03-05 18:55:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-03-05 18:55:57 +0100 |
commit | 8e563cbccda67e56578dbafd3df6f38c1d827ae4 (patch) | |
tree | 4fbdb6b409258338ff923023b96a69dd60b00c59 /src/Instance.hxx | |
parent | 1aee89f5ea603d24991c73e2479472577aa28d66 (diff) |
Instance: use C++11 initializers
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r-- | src/Instance.hxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx index 35bc4f91c..57687ec1a 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -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 |