From 90d25a40a0cf043cc3b1e77fb24dac3f53628382 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Feb 2017 23:21:55 +0100 Subject: Instance: use C++11 initializer --- src/Instance.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Instance.hxx') diff --git a/src/Instance.hxx b/src/Instance.hxx index 5e1d40024..d3391d64f 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -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(). -- cgit v1.2.3