mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 18:38:00 +08:00
Problem: encoder_base_t initialization reorder
Solution: initialize class variable in the same order as they are defined.
This commit is contained in:
parent
de46fc6ac9
commit
779bed6315
@ -57,11 +57,11 @@ namespace zmq
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
inline encoder_base_t (size_t bufsize_) :
|
inline encoder_base_t (size_t bufsize_) :
|
||||||
bufsize (bufsize_),
|
|
||||||
write_pos(0),
|
write_pos(0),
|
||||||
to_write(0),
|
to_write(0),
|
||||||
next(nullptr),
|
next(nullptr),
|
||||||
new_msg_flag(false),
|
new_msg_flag(false),
|
||||||
|
bufsize (bufsize_),
|
||||||
in_progress (NULL)
|
in_progress (NULL)
|
||||||
{
|
{
|
||||||
buf = (unsigned char*) malloc (bufsize_);
|
buf = (unsigned char*) malloc (bufsize_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user