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

Unified Diff: gm/imageblur2.cpp

Issue 2300623005: Replace a lot of 'static const' with 'constexpr' or 'const'. (Closed)
Patch Set: small msvc concession Created 4 years, 3 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 | « gm/image.cpp ('k') | gm/imagefromyuvtextures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imageblur2.cpp
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp
index c6835d8407f3a036806a58bd78f4a803cbc5889f..7431ded03f40b96460affa05fa5c24f41c8196de 100644
--- a/gm/imageblur2.cpp
+++ b/gm/imageblur2.cpp
@@ -14,7 +14,7 @@
#define WIDTH 500
#define HEIGHT 500
-static const float kBlurSigmas[] = {
+constexpr float kBlurSigmas[] = {
0.0, 0.3f, 0.5f, 2.0f, 32.0f, 80.0f };
const char* kTestStrings[] = {
« no previous file with comments | « gm/image.cpp ('k') | gm/imagefromyuvtextures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698