From 34912189158baa03cfa4215ddb704cdaae60d16d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 9 Sep 2017 07:59:51 +0200 Subject: [PATCH] db/update/Service: use C++11 initializers --- src/db/update/Service.cxx | 4 +--- src/db/update/Service.hxx | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/db/update/Service.cxx b/src/db/update/Service.cxx index 8b32f0e60..2bd605fad 100644 --- a/src/db/update/Service.cxx +++ b/src/db/update/Service.cxx @@ -43,9 +43,7 @@ UpdateService::UpdateService(EventLoop &_loop, SimpleDatabase &_db, :DeferredMonitor(_loop), db(_db), storage(_storage), listener(_listener), - update_thread(BIND_THIS_METHOD(Task)), - update_task_id(0), - walk(nullptr) + update_thread(BIND_THIS_METHOD(Task)) { } diff --git a/src/db/update/Service.hxx b/src/db/update/Service.hxx index 4ca38c52b..b0cbd2d60 100644 --- a/src/db/update/Service.hxx +++ b/src/db/update/Service.hxx @@ -46,13 +46,13 @@ class UpdateService final : DeferredMonitor { static constexpr unsigned update_task_id_max = 1 << 15; - unsigned update_task_id; + unsigned update_task_id = 0; UpdateQueue queue; UpdateQueueItem next; - UpdateWalk *walk; + UpdateWalk *walk = nullptr; public: UpdateService(EventLoop &_loop, SimpleDatabase &_db,