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

Unified Diff: ui/gfx/color_palette.h

Issue 1885183002: Allow constexpr, and use it in a few places. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add guidance 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 | « styleguide/c++/c++11.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_palette.h
diff --git a/ui/gfx/color_palette.h b/ui/gfx/color_palette.h
index cb7271ac5aa10456a4e4a1f2a556e548c8aa0b8a..6117d07cab423f8e6755f889b2105baa9422676d 100644
--- a/ui/gfx/color_palette.h
+++ b/ui/gfx/color_palette.h
@@ -11,7 +11,7 @@ namespace gfx {
// A placeholder value for unset colors. This should never be visible and is red
// as a visual flag for misbehaving code.
-const SkColor kPlaceholderColor = SK_ColorRED;
+constexpr SkColor kPlaceholderColor = SK_ColorRED;
const SkColor kChromeIconGrey = SkColorSetRGB(0x5A, 0x5A, 0x5A);
« no previous file with comments | « styleguide/c++/c++11.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698