diff options
author | sergeyu <sergeyu@chromium.org> | 2015-12-23 11:01:22 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-23 19:02:20 +0000 |
commit | 1417e013d741b99685fee8f3d3c166f597655eda (patch) | |
tree | 6a2ab7f1547bd187cb4eb8e037f8ed69ca36eed1 /remoting/host/ipc_util_win.cc | |
parent | 090488ff3ff55782b02a1b2965bdbe2acd0b8f53 (diff) | |
download | chromium_src-1417e013d741b99685fee8f3d3c166f597655eda.zip chromium_src-1417e013d741b99685fee8f3d3c166f597655eda.tar.gz chromium_src-1417e013d741b99685fee8f3d3c166f597655eda.tar.bz2 |
Use std::move() instead of .Pass() in remoting/host
Now there is a presubmit check that doesn't allow Pass() anymore.
See https://www.chromium.org/rvalue-references for information
about std::move in chromium.
Review URL: https://codereview.chromium.org/1549493004
Cr-Commit-Position: refs/heads/master@{#366759}
Diffstat (limited to 'remoting/host/ipc_util_win.cc')
-rw-r--r-- | remoting/host/ipc_util_win.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/remoting/host/ipc_util_win.cc b/remoting/host/ipc_util_win.cc index 22ac15a..d9952ef 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; } |