db/update/Service: use C++11 initializers

This commit is contained in:
Max Kellermann 2017-09-09 07:59:51 +02:00
parent d0f6131ba4
commit 3491218915
2 changed files with 3 additions and 5 deletions

View File

@ -43,9 +43,7 @@ UpdateService::UpdateService(EventLoop &_loop, SimpleDatabase &_db,
:DeferredMonitor(_loop), :DeferredMonitor(_loop),
db(_db), storage(_storage), db(_db), storage(_storage),
listener(_listener), listener(_listener),
update_thread(BIND_THIS_METHOD(Task)), update_thread(BIND_THIS_METHOD(Task))
update_task_id(0),
walk(nullptr)
{ {
} }

View File

@ -46,13 +46,13 @@ class UpdateService final : DeferredMonitor {
static constexpr unsigned update_task_id_max = 1 << 15; static constexpr unsigned update_task_id_max = 1 << 15;
unsigned update_task_id; unsigned update_task_id = 0;
UpdateQueue queue; UpdateQueue queue;
UpdateQueueItem next; UpdateQueueItem next;
UpdateWalk *walk; UpdateWalk *walk = nullptr;
public: public:
UpdateService(EventLoop &_loop, SimpleDatabase &_db, UpdateService(EventLoop &_loop, SimpleDatabase &_db,