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

Unified Diff: chrome/renderer/spellchecker/spellcheck_provider.cc

Issue 810283003: replace COMPILE_ASSERT with static_assert in chrome/[r-z]*/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/renderer/spellchecker/hunspell_engine.cc ('k') | chrome/test/logging/win/file_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck_provider.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_provider.cc b/chrome/renderer/spellchecker/spellcheck_provider.cc
index 2775a1c5079938aa8f5bc95ae7ce74a62919963f..f6d1acf03ff625213d69cff5673ba2af8f7aab0f 100644
--- a/chrome/renderer/spellchecker/spellcheck_provider.cc
+++ b/chrome/renderer/spellchecker/spellcheck_provider.cc
@@ -27,12 +27,12 @@ using blink::WebTextCheckingResult;
using blink::WebTextDecorationType;
using blink::WebVector;
-COMPILE_ASSERT(int(blink::WebTextDecorationTypeSpelling) ==
- int(SpellCheckResult::SPELLING), mismatching_enums);
-COMPILE_ASSERT(int(blink::WebTextDecorationTypeGrammar) ==
- int(SpellCheckResult::GRAMMAR), mismatching_enums);
-COMPILE_ASSERT(int(blink::WebTextDecorationTypeInvisibleSpellcheck) ==
- int(SpellCheckResult::INVISIBLE), mismatching_enums);
+static_assert(int(blink::WebTextDecorationTypeSpelling) ==
+ int(SpellCheckResult::SPELLING), "mismatching enums");
+static_assert(int(blink::WebTextDecorationTypeGrammar) ==
+ int(SpellCheckResult::GRAMMAR), "mismatching enums");
+static_assert(int(blink::WebTextDecorationTypeInvisibleSpellcheck) ==
+ int(SpellCheckResult::INVISIBLE), "mismatching enums");
SpellCheckProvider::SpellCheckProvider(
content::RenderView* render_view,
« no previous file with comments | « chrome/renderer/spellchecker/hunspell_engine.cc ('k') | chrome/test/logging/win/file_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698