Index: chrome/renderer/spellchecker/hunspell_engine.cc |
diff --git a/chrome/renderer/spellchecker/hunspell_engine.cc b/chrome/renderer/spellchecker/hunspell_engine.cc |
index 1b21b625c79f2535b4840b99dc03c1d3840509aa..b37f227a968cdf1f524d2bb3f15f35ecca58d8a0 100644 |
--- a/chrome/renderer/spellchecker/hunspell_engine.cc |
+++ b/chrome/renderer/spellchecker/hunspell_engine.cc |
@@ -25,8 +25,10 @@ namespace { |
// 24 is the observed limits for OSX system checker. |
const size_t kMaxSuggestLen = 24; |
- COMPILE_ASSERT(kMaxCheckedLen <= size_t(MAXWORDLEN), MaxCheckedLen_too_long); |
- COMPILE_ASSERT(kMaxSuggestLen <= kMaxCheckedLen, MaxSuggestLen_too_long); |
+ static_assert(kMaxCheckedLen <= size_t(MAXWORDLEN), |
+ "MaxCheckedLen too long"); |
+ static_assert(kMaxSuggestLen <= kMaxCheckedLen, |
+ "MaxSuggestLen too long"); |
} // namespace |
#if !defined(OS_MACOSX) |