Commit 6de8303d authored by Max Kellermann's avatar Max Kellermann

client: use C++11 initializers

parent 33b41145
......@@ -64,11 +64,11 @@ public:
const unsigned int num; /* client number */
/** is this client waiting for an "idle" response? */
bool idle_waiting;
bool idle_waiting = false;
/** idle flags pending on this client, to be sent as soon as
the client enters "idle" */
unsigned idle_flags;
unsigned idle_flags = 0;
/** idle flags that the client wants to receive */
unsigned idle_subscriptions;
......@@ -87,7 +87,7 @@ public:
* The number of subscriptions in #subscriptions. Used to
* limit the number of subscriptions.
*/
unsigned num_subscriptions;
unsigned num_subscriptions = 0;
/**
* A list of messages this client has received.
......
......@@ -49,9 +49,7 @@ Client::Client(EventLoop &_loop, Partition &_partition,
partition(&_partition),
permission(getDefaultPermissions()),
uid(_uid),
num(_num),
idle_waiting(false), idle_flags(0),
num_subscriptions(0)
num(_num)
{
TimeoutMonitor::Schedule(client_timeout);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment