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

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: include <utility> 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 f8d442a220318e86a10e0880e8c56ec9351f169c..03e420f6b2c5e025bbf9b67903f89ba36771ca25 100644
--- a/remoting/host/native_messaging/native_messaging_writer.cc
+++ b/remoting/host/native_messaging/native_messaging_writer.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <string>
+#include <utility>
#include "base/json/json_writer.h"
@@ -32,9 +33,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