 Chromium Code Reviews
 Chromium Code Reviews Issue 2300623005:
  Replace a lot of 'static const' with 'constexpr' or 'const'.  (Closed)
    
  
    Issue 2300623005:
  Replace a lot of 'static const' with 'constexpr' or 'const'.  (Closed) 
  | Index: gm/beziers.cpp | 
| diff --git a/gm/beziers.cpp b/gm/beziers.cpp | 
| index 20abb0307c4d34cb223250054eb62b5c3e5cb691..cf65c0b22c3897c3be9bc162f1c9ffe2229072f5 100755 | 
| --- a/gm/beziers.cpp | 
| +++ b/gm/beziers.cpp | 
| @@ -13,7 +13,7 @@ | 
| #define H 400 | 
| #define N 10 | 
| -static const SkScalar SH = SkIntToScalar(H); | 
| +constexpr SkScalar SH = SkIntToScalar(H); | 
| static void rnd_quad(SkPath* p, SkPaint* paint, SkRandom& rand) { | 
| p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H)); |