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

Unified Diff: ui/events/event.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « ui/events/devices/x11/device_data_manager_x11.cc ('k') | ui/events/event_processor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 03434d810ec7c26f51aea3855de264f1468f3b9c..122aca5f8d1deb0f8056a0b5c657dc34888212a2 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -4,6 +4,8 @@
#include "ui/events/event.h"
+#include <utility>
+
#if defined(USE_X11)
#include <X11/extensions/XInput2.h>
#include <X11/keysym.h>
@@ -761,7 +763,7 @@ KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) {
KeyEvent::~KeyEvent() {}
void KeyEvent::SetExtendedKeyEventData(scoped_ptr<ExtendedKeyEventData> data) {
- extended_key_event_data_ = data.Pass();
+ extended_key_event_data_ = std::move(data);
}
void KeyEvent::ApplyLayout() const {
« no previous file with comments | « ui/events/devices/x11/device_data_manager_x11.cc ('k') | ui/events/event_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698