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

Unified Diff: remoting/protocol/content_description.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/content_description.cc
diff --git a/remoting/protocol/content_description.cc b/remoting/protocol/content_description.cc
index f50f46bf663d285d45427d72679a70303a0512ef..f4bd66407e0dd5cfb3e8a4062a694af0bea587f5 100644
--- a/remoting/protocol/content_description.cc
+++ b/remoting/protocol/content_description.cc
@@ -115,8 +115,8 @@ bool ParseChannelConfig(const XmlElement* element, bool codec_required,
ContentDescription::ContentDescription(
scoped_ptr<CandidateSessionConfig> config,
scoped_ptr<buzz::XmlElement> authenticator_message)
- : candidate_config_(config.Pass()),
- authenticator_message_(authenticator_message.Pass()) {
+ : candidate_config_(std::move(config)),
+ authenticator_message_(std::move(authenticator_message)) {
}
ContentDescription::~ContentDescription() { }
@@ -235,8 +235,8 @@ scoped_ptr<ContentDescription> ContentDescription::ParseXml(
if (child)
authenticator_message.reset(new XmlElement(*child));
- return make_scoped_ptr(
- new ContentDescription(config.Pass(), authenticator_message.Pass()));
+ return make_scoped_ptr(new ContentDescription(
+ std::move(config), std::move(authenticator_message)));
}
} // namespace protocol

Powered by Google App Engine
This is Rietveld 408576698