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

Unified Diff: remoting/protocol/pseudotcp_adapter.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/pseudotcp_adapter.cc
diff --git a/remoting/protocol/pseudotcp_adapter.cc b/remoting/protocol/pseudotcp_adapter.cc
index 2ed9cb7354a28be0e1204657f02e7606ef63ea2b..dba19b8338b1407e2dc98429aeda3a124c45474a 100644
--- a/remoting/protocol/pseudotcp_adapter.cc
+++ b/remoting/protocol/pseudotcp_adapter.cc
@@ -114,7 +114,7 @@ class PseudoTcpAdapter::Core : public cricket::IPseudoTcpNotify,
PseudoTcpAdapter::Core::Core(scoped_ptr<P2PDatagramSocket> socket)
: pseudo_tcp_(this, 0),
- socket_(socket.Pass()),
+ socket_(std::move(socket)),
write_waits_for_send_(false),
waiting_write_position_(false),
socket_write_pending_(false) {
@@ -449,7 +449,7 @@ void PseudoTcpAdapter::Core::CheckWriteComplete() {
// Public interface implementation.
PseudoTcpAdapter::PseudoTcpAdapter(scoped_ptr<P2PDatagramSocket> socket)
- : core_(new Core(socket.Pass())) {
+ : core_(new Core(std::move(socket))) {
}
PseudoTcpAdapter::~PseudoTcpAdapter() {

Powered by Google App Engine
This is Rietveld 408576698