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

Unified Diff: gm/rrect.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/rectangletexture.cpp ('k') | gm/rrectclipdrawpaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rrect.cpp
diff --git a/gm/rrect.cpp b/gm/rrect.cpp
index 5106634728545b2aa8c6ed00b2a2e21de349ac4f..660e72a64732e1d950ba90b0d2df1b6a3d691d1e 100644
--- a/gm/rrect.cpp
+++ b/gm/rrect.cpp
@@ -136,7 +136,7 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
- static const InsetProc insetProcs[] = {
+ constexpr InsetProc insetProcs[] = {
inset0, inset1, inset2, inset3
};
« no previous file with comments | « gm/rectangletexture.cpp ('k') | gm/rrectclipdrawpaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698