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

Unified Diff: net/socket/tcp_socket_posix.cc

Issue 2500693002: Replace unique_ptr.reset with std::move in /net (Closed)
Patch Set: fix Created 4 years, 1 month 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
« no previous file with comments | « net/quic/core/quic_framer.cc ('k') | net/spdy/hpack/hpack_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_socket_posix.cc
diff --git a/net/socket/tcp_socket_posix.cc b/net/socket/tcp_socket_posix.cc
index 2707b29dd4f359acc8d54fe01150f0bdbe7b7df8..c02e0fc6081818a18a598899dad98410b2b47b66 100644
--- a/net/socket/tcp_socket_posix.cc
+++ b/net/socket/tcp_socket_posix.cc
@@ -529,7 +529,7 @@ int TCPSocketPosix::BuildTcpSocketPosix(
tcp_socket->reset(
new TCPSocketPosix(nullptr, net_log_.net_log(), net_log_.source()));
- (*tcp_socket)->socket_.reset(accept_socket_.release());
+ (*tcp_socket)->socket_ = std::move(accept_socket_);
return OK;
}
« no previous file with comments | « net/quic/core/quic_framer.cc ('k') | net/spdy/hpack/hpack_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698