client: use C++11 initializers
This commit is contained in:
@@ -64,11 +64,11 @@ public:
|
|||||||
const unsigned int num; /* client number */
|
const unsigned int num; /* client number */
|
||||||
|
|
||||||
/** is this client waiting for an "idle" response? */
|
/** 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
|
/** idle flags pending on this client, to be sent as soon as
|
||||||
the client enters "idle" */
|
the client enters "idle" */
|
||||||
unsigned idle_flags;
|
unsigned idle_flags = 0;
|
||||||
|
|
||||||
/** idle flags that the client wants to receive */
|
/** idle flags that the client wants to receive */
|
||||||
unsigned idle_subscriptions;
|
unsigned idle_subscriptions;
|
||||||
@@ -87,7 +87,7 @@ public:
|
|||||||
* The number of subscriptions in #subscriptions. Used to
|
* The number of subscriptions in #subscriptions. Used to
|
||||||
* limit the number of subscriptions.
|
* limit the number of subscriptions.
|
||||||
*/
|
*/
|
||||||
unsigned num_subscriptions;
|
unsigned num_subscriptions = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of messages this client has received.
|
* A list of messages this client has received.
|
||||||
|
@@ -49,9 +49,7 @@ Client::Client(EventLoop &_loop, Partition &_partition,
|
|||||||
partition(&_partition),
|
partition(&_partition),
|
||||||
permission(getDefaultPermissions()),
|
permission(getDefaultPermissions()),
|
||||||
uid(_uid),
|
uid(_uid),
|
||||||
num(_num),
|
num(_num)
|
||||||
idle_waiting(false), idle_flags(0),
|
|
||||||
num_subscriptions(0)
|
|
||||||
{
|
{
|
||||||
TimeoutMonitor::Schedule(client_timeout);
|
TimeoutMonitor::Schedule(client_timeout);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user