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

Unified Diff: net/socket/unix_domain_client_socket_posix.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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: net/socket/unix_domain_client_socket_posix.cc
diff --git a/net/socket/unix_domain_client_socket_posix.cc b/net/socket/unix_domain_client_socket_posix.cc
index 8b15e73d54eea0f20fa1c85fd2863451b40fc640..fc2b303425a0042fb3251b8b3edc657fe824a25f 100644
--- a/net/socket/unix_domain_client_socket_posix.cc
+++ b/net/socket/unix_domain_client_socket_posix.cc
@@ -6,6 +6,7 @@
#include <sys/socket.h>
#include <sys/un.h>
+#include <utility>
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
@@ -23,7 +24,7 @@ UnixDomainClientSocket::UnixDomainClientSocket(const std::string& socket_path,
}
UnixDomainClientSocket::UnixDomainClientSocket(scoped_ptr<SocketPosix> socket)
- : use_abstract_namespace_(false), socket_(socket.Pass()) {}
+ : use_abstract_namespace_(false), socket_(std::move(socket)) {}
UnixDomainClientSocket::~UnixDomainClientSocket() {
Disconnect();
« no previous file with comments | « net/socket/transport_client_socket_pool_test_util.cc ('k') | net/socket/unix_domain_client_socket_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698