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

Unified Diff: remoting/protocol/chromium_port_allocator.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/chromium_port_allocator.cc
diff --git a/remoting/protocol/chromium_port_allocator.cc b/remoting/protocol/chromium_port_allocator.cc
index 5a5c103b541ec058b5389dcc928bbe72b356801a..89d43d46928ce8b3ee5caca54eaa3c0ea8c65c9b 100644
--- a/remoting/protocol/chromium_port_allocator.cc
+++ b/remoting/protocol/chromium_port_allocator.cc
@@ -136,7 +136,7 @@ scoped_ptr<ChromiumPortAllocator> ChromiumPortAllocator::Create(
scoped_ptr<rtc::PacketSocketFactory> socket_factory(
new ChromiumPacketSocketFactory());
return make_scoped_ptr(new ChromiumPortAllocator(
- url_context, network_manager.Pass(), socket_factory.Pass()));
+ url_context, std::move(network_manager), std::move(socket_factory)));
}
ChromiumPortAllocator::ChromiumPortAllocator(
@@ -147,8 +147,8 @@ ChromiumPortAllocator::ChromiumPortAllocator(
socket_factory.get(),
std::string()),
url_context_(url_context),
- network_manager_(network_manager.Pass()),
- socket_factory_(socket_factory.Pass()) {}
+ network_manager_(std::move(network_manager)),
+ socket_factory_(std::move(socket_factory)) {}
ChromiumPortAllocator::~ChromiumPortAllocator() {}

Powered by Google App Engine
This is Rietveld 408576698