Index: gm/variedtext.cpp |
diff --git a/gm/variedtext.cpp b/gm/variedtext.cpp |
index 97b3f577e531fb9c649e6ee8d62a527fd93ff5e6..887a7c30d09f80af62193cf8e40d2bb225937d9f 100644 |
--- a/gm/variedtext.cpp |
+++ b/gm/variedtext.cpp |
@@ -58,7 +58,7 @@ protected: |
SkScalar w = SkIntToScalar(size.fWidth); |
SkScalar h = SkIntToScalar(size.fHeight); |
- SK_COMPILE_ASSERT(4 == SK_ARRAY_COUNT(fTypefacesToUnref), typeface_cnt); |
+ static_assert(4 == SK_ARRAY_COUNT(fTypefacesToUnref), "typeface_cnt"); |
fTypefacesToUnref[0] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kNormal); |
fTypefacesToUnref[1] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kBold); |
fTypefacesToUnref[2] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kNormal); |