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

Unified Diff: components/captive_portal/captive_portal_types.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
Index: components/captive_portal/captive_portal_types.cc
diff --git a/components/captive_portal/captive_portal_types.cc b/components/captive_portal/captive_portal_types.cc
index a7aec2f448bd4bdf5550461d9e569989278dd0ff..d47762db43653379172890545e4c002a778ab71c 100644
--- a/components/captive_portal/captive_portal_types.cc
+++ b/components/captive_portal/captive_portal_types.cc
@@ -16,8 +16,9 @@ const char* const kCaptivePortalResultNames[] = {
"BehindCaptivePortal",
"NumCaptivePortalResults",
};
-COMPILE_ASSERT(arraysize(kCaptivePortalResultNames) == RESULT_COUNT + 1,
- captive_portal_result_name_count_mismatch);
+static_assert(arraysize(kCaptivePortalResultNames) == RESULT_COUNT + 1,
+ "kCaptivePortalResultNames should have "
+ "RESULT_COUNT + 1 elements");
} // namespace

Powered by Google App Engine
This is Rietveld 408576698