mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1092010 - part 2 - use move semantics in MessageChannel.cpp; r=dvander
This commit is contained in:
parent
9c98633d25
commit
aa265e842b
@ -719,7 +719,7 @@ MessageChannel::SendAndWait(Message* aMsg, Message* aReply)
|
||||
for (MessageQueue::iterator it = mPending.begin(); it != mPending.end(); ) {
|
||||
Message &msg = *it;
|
||||
if (!ShouldDeferMessage(msg)) {
|
||||
toProcess.append(msg);
|
||||
toProcess.append(Move(msg));
|
||||
it = mPending.erase(it);
|
||||
continue;
|
||||
}
|
||||
@ -997,7 +997,7 @@ MessageChannel::DequeueOne(Message *recvd)
|
||||
if (mPending.empty())
|
||||
return false;
|
||||
|
||||
*recvd = mPending.front();
|
||||
*recvd = Move(mPending.front());
|
||||
mPending.pop_front();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user