Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1179)

Unified Diff: mojo/edk/system/message_in_transit.cc

Issue 1529303004: Convert Pass()→std::move() in mojo/edk/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_in_transit.cc
diff --git a/mojo/edk/system/message_in_transit.cc b/mojo/edk/system/message_in_transit.cc
index 05fd98f08c8705f57944c5989af701d5f4696dbb..310fa482098d38d5eec0a73db18627960e6424d4 100644
--- a/mojo/edk/system/message_in_transit.cc
+++ b/mojo/edk/system/message_in_transit.cc
@@ -5,8 +5,8 @@
#include "mojo/edk/system/message_in_transit.h"
#include <string.h>
-
#include <ostream>
+#include <utility>
#include "base/logging.h"
#include "mojo/edk/system/configuration.h"
@@ -133,7 +133,7 @@ void MessageInTransit::SetDispatchers(
DCHECK(!dispatchers_);
DCHECK(!transport_data_);
- dispatchers_ = dispatchers.Pass();
+ dispatchers_ = std::move(dispatchers);
}
void MessageInTransit::SetTransportData(
@@ -142,7 +142,7 @@ void MessageInTransit::SetTransportData(
DCHECK(!transport_data_);
DCHECK(!dispatchers_);
- transport_data_ = transport_data.Pass();
+ transport_data_ = std::move(transport_data);
UpdateTotalSize();
}
@@ -152,7 +152,7 @@ void MessageInTransit::SerializeAndCloseDispatchers() {
if (!dispatchers_ || !dispatchers_->size())
return;
- transport_data_.reset(new TransportData(dispatchers_.Pass()));
+ transport_data_.reset(new TransportData(std::move(dispatchers_)));
// Update the sizes in the message header.
UpdateTotalSize();
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698