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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 831493002: replace COMPILE_ASSERT with static_assert in pdf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fit nits Created 5 years, 11 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 | « pdf/pdfium/pdfium_assert_matching_enums.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 8c49b9dc0bc67a56ed1bb3732a394ae62ec88ccb..679719f2f9683bbe118f8789c7f6efa1b585d0be 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -135,10 +135,10 @@ struct PDFFontSubstitution {
};
PP_BrowserFont_Trusted_Weight WeightToBrowserFontTrustedWeight(int weight) {
- COMPILE_ASSERT(PP_BROWSERFONT_TRUSTED_WEIGHT_100 == 0,
- PP_BrowserFont_Trusted_Weight_Min);
- COMPILE_ASSERT(PP_BROWSERFONT_TRUSTED_WEIGHT_900 == 8,
- PP_BrowserFont_Trusted_Weight_Max);
+ static_assert(PP_BROWSERFONT_TRUSTED_WEIGHT_100 == 0,
+ "PP_BrowserFont_Trusted_Weight min");
+ static_assert(PP_BROWSERFONT_TRUSTED_WEIGHT_900 == 8,
+ "PP_BrowserFont_Trusted_Weight max");
const int kMinimumWeight = 100;
const int kMaximumWeight = 900;
int normalized_weight =
« no previous file with comments | « pdf/pdfium/pdfium_assert_matching_enums.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698