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

Unified Diff: ui/events/gesture_detection/motion_event_buffer.cc

Issue 1138993007: Substituting pattern push_back(ptr.release()) with push_back(ptr.Pass()) in ui/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 5 years, 7 months 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 | « no previous file | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/motion_event_buffer.cc
diff --git a/ui/events/gesture_detection/motion_event_buffer.cc b/ui/events/gesture_detection/motion_event_buffer.cc
index e217d86b5c16de648782860164331ca42ffc86ca..cb12410ef976134f4d57cc11c310f1f727a77de0 100644
--- a/ui/events/gesture_detection/motion_event_buffer.cc
+++ b/ui/events/gesture_detection/motion_event_buffer.cc
@@ -261,7 +261,7 @@ void MotionEventBuffer::OnMotionEvent(const MotionEvent& event) {
scoped_ptr<MotionEventGeneric> clone = MotionEventGeneric::CloneEvent(event);
if (buffered_events_.empty()) {
- buffered_events_.push_back(clone.release());
+ buffered_events_.push_back(clone.Pass());
client_->SetNeedsFlush();
return;
}
@@ -272,7 +272,7 @@ void MotionEventBuffer::OnMotionEvent(const MotionEvent& event) {
FlushWithoutResampling(buffered_events_.Pass());
}
- buffered_events_.push_back(clone.release());
+ buffered_events_.push_back(clone.Pass());
// No need to request another flush as the first event will have requested it.
}
« no previous file with comments | « no previous file | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698