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

Unified Diff: content/common/input/input_param_traits.cc

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_event_ack.cc ('k') | content/common/input/input_param_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/input_param_traits.cc
diff --git a/content/common/input/input_param_traits.cc b/content/common/input/input_param_traits.cc
index b0d079f4088c138d92d1174603bbfc42f76eb08c..0402f433c5e0d15f7f6d0407a22c677e21ba4e52 100644
--- a/content/common/input/input_param_traits.cc
+++ b/content/common/input/input_param_traits.cc
@@ -4,6 +4,8 @@
#include "content/common/input/input_param_traits.h"
+#include <utility>
+
#include "content/common/content_param_traits.h"
#include "content/common/input/synthetic_pinch_gesture_params.h"
#include "content/common/input/synthetic_smooth_drag_gesture_params.h"
@@ -21,7 +23,7 @@ scoped_ptr<content::SyntheticGestureParams> ReadGestureParams(
if (!ReadParam(m, iter, gesture_params.get()))
return scoped_ptr<content::SyntheticGestureParams>();
- return gesture_params.Pass();
+ return std::move(gesture_params);
}
} // namespace
@@ -107,7 +109,7 @@ bool ParamTraits<content::SyntheticGesturePacket>::Read(
return false;
}
- p->set_gesture_params(gesture_params.Pass());
+ p->set_gesture_params(std::move(gesture_params));
return p->gesture_params() != NULL;
}
« no previous file with comments | « content/common/input/input_event_ack.cc ('k') | content/common/input/input_param_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698