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

Unified Diff: remoting/host/ipc_util_win.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
« no previous file with comments | « remoting/host/ipc_input_injector.cc ('k') | remoting/host/it2me/it2me_confirmation_dialog_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_util_win.cc
diff --git a/remoting/host/ipc_util_win.cc b/remoting/host/ipc_util_win.cc
index 22ac15a0ea8472740df023c2e709331857f1e41c..d9952ef0dd77284a332a3fcbcaf9090c0a503008 100644
--- a/remoting/host/ipc_util_win.cc
+++ b/remoting/host/ipc_util_win.cc
@@ -4,6 +4,8 @@
#include "remoting/host/ipc_util.h"
+#include <utility>
+
#include "base/files/file.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
@@ -84,8 +86,8 @@ bool CreateConnectedIpcChannel(
return false;
}
- *client_out = client.Pass();
- *server_out = server.Pass();
+ *client_out = std::move(client);
+ *server_out = std::move(server);
return true;
}
@@ -128,7 +130,7 @@ bool CreateIpcChannel(
return false;
}
- *pipe_out = pipe.Pass();
+ *pipe_out = std::move(pipe);
return true;
}
« no previous file with comments | « remoting/host/ipc_input_injector.cc ('k') | remoting/host/it2me/it2me_confirmation_dialog_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698