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

Unified Diff: ui/base/x/x11_atom_cache.cc

Issue 11878022: ui: Convert scoped_arrays to the new scoped_ptr style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/base/win/ime_input.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_atom_cache.cc
diff --git a/ui/base/x/x11_atom_cache.cc b/ui/base/x/x11_atom_cache.cc
index db877251ccac921d26a858c4366415f6a1af2c55..d2468d722c530f3c389b711c5843a76e6785babd 100644
--- a/ui/base/x/x11_atom_cache.cc
+++ b/ui/base/x/x11_atom_cache.cc
@@ -18,7 +18,7 @@ X11AtomCache::X11AtomCache(Display* xdisplay, const char** to_cache)
for (const char** i = to_cache; *i != NULL; i++)
cache_count++;
- scoped_array< ::Atom> cached_atoms(new ::Atom[cache_count]);
+ scoped_ptr< ::Atom[]> cached_atoms(new ::Atom[cache_count]);
// Grab all the atoms we need now to minimize roundtrips to the X11 server.
XInternAtoms(xdisplay_,
« no previous file with comments | « ui/base/win/ime_input.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698