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

Unified Diff: remoting/host/native_messaging/native_messaging_writer.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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/host/native_messaging/native_messaging_writer.cc
diff --git a/remoting/host/native_messaging/native_messaging_writer.cc b/remoting/host/native_messaging/native_messaging_writer.cc
index 030cfd3f26adb3309579dd0011828e1f9b56aa82..207f4e83940adf82a0f591f3a8a16d8e0de77350 100644
--- a/remoting/host/native_messaging/native_messaging_writer.cc
+++ b/remoting/host/native_messaging/native_messaging_writer.cc
@@ -30,9 +30,7 @@ const size_t kMaximumMessageSize = 1024 * 1024;
namespace remoting {
NativeMessagingWriter::NativeMessagingWriter(base::File file)
- : write_stream_(file.Pass()),
- fail_(false) {
-}
+ : write_stream_(std::move(file)), fail_(false) {}
NativeMessagingWriter::~NativeMessagingWriter() {
}

Powered by Google App Engine
This is Rietveld 408576698