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

Unified Diff: Source/platform/fonts/FontDescription.cpp

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/exported/WebCryptoAlgorithm.cpp ('k') | Source/platform/fonts/FontWidthVariant.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontDescription.cpp
diff --git a/Source/platform/fonts/FontDescription.cpp b/Source/platform/fonts/FontDescription.cpp
index 30a4cdb1b3b9f29c6b4cef3e0b84e6048c55dd08..7a9d0b9b5606b2a5ec65409bef47764fb8e55cbd 100644
--- a/Source/platform/fonts/FontDescription.cpp
+++ b/Source/platform/fonts/FontDescription.cpp
@@ -46,7 +46,7 @@ struct SameSizeAsFontDescription {
uint32_t bitfields2 : 7;
};
-COMPILE_ASSERT(sizeof(FontDescription) == sizeof(SameSizeAsFontDescription), FontDescription_should_stay_small);
+static_assert(sizeof(FontDescription) == sizeof(SameSizeAsFontDescription), "FontDescription should stay small");
TypesettingFeatures FontDescription::s_defaultTypesettingFeatures = 0;
« no previous file with comments | « Source/platform/exported/WebCryptoAlgorithm.cpp ('k') | Source/platform/fonts/FontWidthVariant.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698