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

Unified Diff: content/common/input/synthetic_gesture_packet.h

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/web_input_event_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/synthetic_gesture_packet.h
diff --git a/content/common/input/synthetic_gesture_packet.h b/content/common/input/synthetic_gesture_packet.h
index f1dd35b2b76320106fa4277f787362eb8e38fd1f..db2c80bbe9eb189f6489fb9d27fdee1f8fc7b7d8 100644
--- a/content/common/input/synthetic_gesture_packet.h
+++ b/content/common/input/synthetic_gesture_packet.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PACKET_H_
#define CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PACKET_H_
+#include <utility>
+
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
@@ -20,13 +22,13 @@ class CONTENT_EXPORT SyntheticGesturePacket {
~SyntheticGesturePacket();
void set_gesture_params(scoped_ptr<SyntheticGestureParams> gesture_params) {
- gesture_params_ = gesture_params.Pass();
+ gesture_params_ = std::move(gesture_params);
}
const SyntheticGestureParams* gesture_params() const {
return gesture_params_.get();
}
scoped_ptr<SyntheticGestureParams> pass_gesture_params() {
- return gesture_params_.Pass();
+ return std::move(gesture_params_);
}
private:
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/web_input_event_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698