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

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

Issue 1875913002: Cleanup: Convert const char* kFoo to const char kFoo[]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/gfx/x/x11_atom_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/x/x11_atom_cache.cc
diff --git a/ui/gfx/x/x11_atom_cache.cc b/ui/gfx/x/x11_atom_cache.cc
index cc5d5eb3f6a861beeb3b83a376452d7001a42edb..5288d6d287f248e8078248ad1b09ed215d2334d1 100644
--- a/ui/gfx/x/x11_atom_cache.cc
+++ b/ui/gfx/x/x11_atom_cache.cc
@@ -12,12 +12,12 @@
namespace ui {
-X11AtomCache::X11AtomCache(XDisplay* xdisplay, const char** to_cache)
+X11AtomCache::X11AtomCache(XDisplay* xdisplay, const char* const* to_cache)
: xdisplay_(xdisplay),
uncached_atoms_allowed_(false) {
int cache_count = 0;
- for (const char** i = to_cache; *i != NULL; i++)
- cache_count++;
+ for (const char* const* i = to_cache; *i; ++i)
+ ++cache_count;
scoped_ptr<XAtom[]> cached_atoms(new XAtom[cache_count]);
« no previous file with comments | « ui/gfx/x/x11_atom_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698