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

Unified Diff: gm/imagescalealigned.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/imagemagnifier.cpp ('k') | gm/imagesource2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imagescalealigned.cpp
diff --git a/gm/imagescalealigned.cpp b/gm/imagescalealigned.cpp
index 474490fd2419fbd9293b3b9e548fc72499334c89..9498d320716795ee93d8907e1191e7eedd69bc52 100644
--- a/gm/imagescalealigned.cpp
+++ b/gm/imagescalealigned.cpp
@@ -138,8 +138,8 @@ private:
return pt;
}
- static const unsigned kSegLen = 15;
- static const unsigned kStretchFactor = 4;
+ static constexpr unsigned kSegLen = 15;
+ static constexpr unsigned kStretchFactor = 4;
SkSTArray<2, ImageSet> fSets;
typedef GM INHERITED;
« no previous file with comments | « gm/imagemagnifier.cpp ('k') | gm/imagesource2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698