mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix ProtocolMessage's move constructor and assignment.
This commit is contained in:
@@ -115,6 +115,8 @@ public:
|
||||
message.size_limit = (size_t)-1;
|
||||
this->attachment = message.attachment;
|
||||
message.attachment = NULL;
|
||||
this->wrapper = message.wrapper;
|
||||
message.wrapper = NULL;
|
||||
}
|
||||
|
||||
ProtocolMessage& operator = (ProtocolMessage&& message)
|
||||
@@ -126,6 +128,8 @@ public:
|
||||
delete this->attachment;
|
||||
this->attachment = message.attachment;
|
||||
message.attachment = NULL;
|
||||
this->wrapper = message.wrapper;
|
||||
message.wrapper = NULL;
|
||||
}
|
||||
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user