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),
db(_db), storage(_storage),
listener(_listener),
update_thread(BIND_THIS_METHOD(Task)),
update_task_id(0),
walk(nullptr)
update_thread(BIND_THIS_METHOD(Task))
{
}

View File

@ -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,