Skip to content

Commit

Permalink
Bug 1092010 - part 2 - use move semantics in MessageChannel.cpp; r=dv…
Browse files Browse the repository at this point in the history
…ander
  • Loading branch information
froydnj committed Oct 31, 2014
1 parent 21bce8e commit 3ff1380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipc/glue/MessageChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 3ff1380

Please sign in to comment.