0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 07:58:14 +08:00

Problem: socket_base_t initialization reorder

Solution: initialize class variable in the same order as they are
defined.
This commit is contained in:
Luca Boccassi 2016-02-21 23:41:02 +00:00
parent acbf021a7c
commit c21dd8d6a2

View File

@ -184,6 +184,8 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
tag (0xbaddecaf),
ctx_terminated (false),
destroyed (false),
poller(nullptr),
handle(NULL),
last_tsc (0),
ticks (0),
rcvmore (false),
@ -191,8 +193,6 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
monitor_socket (NULL),
monitor_events (0),
thread_safe (thread_safe_),
poller(nullptr),
handle(NULL),
reaper_signaler (NULL)
{
options.socket_id = sid_;