Instance: use C++11 initializer

This commit is contained in:
Max Kellermann 2017-02-17 23:21:55 +01:00
parent c335f18be7
commit 90d25a40a0

View File

@ -89,10 +89,10 @@ struct Instance final
Partition *partition;
StateFile *state_file;
StateFile *state_file = nullptr;
Instance()
:idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle)), state_file(nullptr) {}
:idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle)) {}
/**
* Initiate shutdown. Wrapper for EventLoop::Break().