db/update/Service: use C++11 initializers
This commit is contained in:
parent
d0f6131ba4
commit
3491218915
@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user