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

Unified Diff: remoting/host/input_injector_x11.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/input_injector_win.cc ('k') | remoting/host/ipc_audio_capturer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector_x11.cc
diff --git a/remoting/host/input_injector_x11.cc b/remoting/host/input_injector_x11.cc
index 98ee434fcee4eaaa46c42f6ee0a97645a6999464..030df3f1e9a0ffaa686833b9cc237c9ac3be6ba4 100644
--- a/remoting/host/input_injector_x11.cc
+++ b/remoting/host/input_injector_x11.cc
@@ -13,6 +13,7 @@
#undef Status // Xlib.h #defines this, which breaks protobuf headers.
#include <set>
+#include <utility>
#include "base/bind.h"
#include "base/compiler_specific.h"
@@ -242,7 +243,7 @@ void InputInjectorX11::InjectTouchEvent(const TouchEvent& event) {
void InputInjectorX11::Start(
scoped_ptr<protocol::ClipboardStub> client_clipboard) {
- core_->Start(client_clipboard.Pass());
+ core_->Start(std::move(client_clipboard));
}
InputInjectorX11::Core::Core(
@@ -629,7 +630,7 @@ void InputInjectorX11::Core::Start(
InitMouseButtonMap();
- clipboard_->Start(client_clipboard.Pass());
+ clipboard_->Start(std::move(client_clipboard));
}
void InputInjectorX11::Core::Stop() {
@@ -651,7 +652,7 @@ scoped_ptr<InputInjector> InputInjector::Create(
new InputInjectorX11(main_task_runner));
if (!injector->Init())
return nullptr;
- return injector.Pass();
+ return std::move(injector);
}
// static
« no previous file with comments | « remoting/host/input_injector_win.cc ('k') | remoting/host/ipc_audio_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698