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/input_injector_mac.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/input_injector_mac.cc')
-rw-r--r-- | remoting/host/input_injector_mac.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/remoting/host/input_injector_mac.cc b/remoting/host/input_injector_mac.cc index 63bf04c..fc2ba1b 100644 --- a/remoting/host/input_injector_mac.cc +++ b/remoting/host/input_injector_mac.cc @@ -8,7 +8,9 @@ #include <Carbon/Carbon.h> #include <IOKit/pwr_mgt/IOPMLib.h> #include <stdint.h> + #include <algorithm> +#include <utility> #include "base/bind.h" #include "base/compiler_specific.h" @@ -154,7 +156,7 @@ void InputInjectorMac::InjectTouchEvent(const TouchEvent& event) { void InputInjectorMac::Start( scoped_ptr<protocol::ClipboardStub> client_clipboard) { - core_->Start(client_clipboard.Pass()); + core_->Start(std::move(client_clipboard)); } InputInjectorMac::Core::Core( @@ -341,7 +343,7 @@ void InputInjectorMac::Core::Start( return; } - clipboard_->Start(client_clipboard.Pass()); + clipboard_->Start(std::move(client_clipboard)); } void InputInjectorMac::Core::Stop() { |