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

Unified Diff: ui/events/test/test_event_target.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 | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/test_event_target.cc
diff --git a/ui/events/test/test_event_target.cc b/ui/events/test/test_event_target.cc
index 8ea7438d738841b97acb56fcfdceb857f0458fd7..2f0fe2ada9cd1fe985e17a5e3db985a7b917a886 100644
--- a/ui/events/test/test_event_target.cc
+++ b/ui/events/test/test_event_target.cc
@@ -23,7 +23,7 @@ void TestEventTarget::AddChild(scoped_ptr<TestEventTarget> child) {
if (child->parent()) {
AddChild(child->parent()->RemoveChild(child.release()));
} else {
- children_.push_back(child.release());
+ children_.push_back(child.Pass());
}
child_r->set_parent(this);
}
« no previous file with comments | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698