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

Unified Diff: components/omnibox/autocomplete_match.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup 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 | « components/navigation_metrics/navigation_metrics.cc ('k') | components/omnibox/autocomplete_match_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/autocomplete_match.cc
diff --git a/components/omnibox/autocomplete_match.cc b/components/omnibox/autocomplete_match.cc
index efe770e61e932f428515539f673a9737376f9c98..8d656aacc3fb88543bb772be4e22da462e97ce8b 100644
--- a/components/omnibox/autocomplete_match.cc
+++ b/components/omnibox/autocomplete_match.cc
@@ -156,8 +156,8 @@ int AutocompleteMatch::TypeToIcon(Type type) {
IDR_OMNIBOX_HTTP,
IDR_OMNIBOX_SEARCH,
};
- COMPILE_ASSERT(arraysize(icons) == AutocompleteMatchType::NUM_TYPES,
- icons_array_must_match_type_enum);
+ static_assert(arraysize(icons) == AutocompleteMatchType::NUM_TYPES,
+ "icons array must have NUM_TYPES elements");
return icons[type];
}
« no previous file with comments | « components/navigation_metrics/navigation_metrics.cc ('k') | components/omnibox/autocomplete_match_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698