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

Unified Diff: Source/platform/fonts/FontWidthVariant.h

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups Created 6 years 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 | « Source/platform/fonts/FontDescription.cpp ('k') | Source/platform/fonts/shaping/HarfBuzzShaper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontWidthVariant.h
diff --git a/Source/platform/fonts/FontWidthVariant.h b/Source/platform/fonts/FontWidthVariant.h
index 1c7a95019883536cd6dcddeef7472ff9f600df44..a5a5d8b6ad52a2bf5cec35b37e83defb3f918ddb 100644
--- a/Source/platform/fonts/FontWidthVariant.h
+++ b/Source/platform/fonts/FontWidthVariant.h
@@ -40,7 +40,7 @@ enum FontWidthVariant {
const unsigned FontWidthVariantWidth = 2;
-COMPILE_ASSERT(LastFontWidthVariant >> FontWidthVariantWidth == 0, FontWidthVariantWidth_is_correct);
+static_assert(LastFontWidthVariant >> FontWidthVariantWidth == 0, "FontWidthVariantWidth must be correct");
} // namespace blink
« no previous file with comments | « Source/platform/fonts/FontDescription.cpp ('k') | Source/platform/fonts/shaping/HarfBuzzShaper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698