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

Unified Diff: remoting/protocol/v2_authenticator.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (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
Index: remoting/protocol/v2_authenticator.cc
diff --git a/remoting/protocol/v2_authenticator.cc b/remoting/protocol/v2_authenticator.cc
index 212c5f2528e55d9c0b0e6df2ee082b52e2bb4e82..925bcd4924a574a97f1d060adf9e9b621069dade 100644
--- a/remoting/protocol/v2_authenticator.cc
+++ b/remoting/protocol/v2_authenticator.cc
@@ -48,7 +48,7 @@ scoped_ptr<Authenticator> V2Authenticator::CreateForHost(
P224EncryptedKeyExchange::kPeerTypeServer, shared_secret, initial_state));
result->local_cert_ = local_cert;
result->local_key_pair_ = key_pair;
- return result.Pass();
+ return std::move(result);
}
V2Authenticator::V2Authenticator(
@@ -178,7 +178,7 @@ scoped_ptr<buzz::XmlElement> V2Authenticator::GetNextMessage() {
if (state_ != ACCEPTED) {
state_ = WAITING_MESSAGE;
}
- return message.Pass();
+ return message;
}
const std::string& V2Authenticator::GetAuthKey() const {

Powered by Google App Engine
This is Rietveld 408576698