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

Unified Diff: ui/events/platform/x11/x11_event_source_libevent.cc

Issue 922923002: ui: Cleanup the usage of scoped_ptr throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 10 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/x11/x11_event_source_glib.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_event_source_libevent.cc
diff --git a/ui/events/platform/x11/x11_event_source_libevent.cc b/ui/events/platform/x11/x11_event_source_libevent.cc
index 0df1977873b7a443ca1827b1bb59fba6e29dcd77..ff01d2e13c5580c41cd871edf1a905fb9df30e44 100644
--- a/ui/events/platform/x11/x11_event_source_libevent.cc
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc
@@ -61,8 +61,7 @@ class X11EventSourceLibevent : public X11EventSource,
} // namespace
scoped_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() {
- return scoped_ptr<PlatformEventSource>(
- new X11EventSourceLibevent(gfx::GetXDisplay()));
+ return make_scoped_ptr(new X11EventSourceLibevent(gfx::GetXDisplay()));
}
} // namespace ui
« no previous file with comments | « ui/events/platform/x11/x11_event_source_glib.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698