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

Unified Diff: gm/complexclip2.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/complexclip.cpp ('k') | gm/complexclip3.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/complexclip2.cpp
diff --git a/gm/complexclip2.cpp b/gm/complexclip2.cpp
index 4314619cfdb34af4fe235b1e3095fae9c02ce9a0..2994e689eb430e24b9c6f7a7b26ed899fada7776 100644
--- a/gm/complexclip2.cpp
+++ b/gm/complexclip2.cpp
@@ -102,10 +102,10 @@ protected:
}
}
- static const int kRows = 5;
- static const int kCols = 5;
- static const int kPadX = 20;
- static const int kPadY = 20;
+ static constexpr int kRows = 5;
+ static constexpr int kCols = 5;
+ static constexpr int kPadX = 20;
+ static constexpr int kPadY = 20;
static const char* ClipStr(Clip clip) {
switch (clip) {
« no previous file with comments | « gm/complexclip.cpp ('k') | gm/complexclip3.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698