summaryrefslogtreecommitdiffstats
path: root/mojo/edk/system/message_in_transit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/edk/system/message_in_transit.cc')
-rw-r--r--mojo/edk/system/message_in_transit.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/mojo/edk/system/message_in_transit.cc b/mojo/edk/system/message_in_transit.cc
index 05fd98f..310fa48 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();