diff options
author | mostynb <mostynb@opera.com> | 2014-12-22 13:14:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 21:15:32 +0000 |
commit | 470748ce474f8fce7a566eb570021273c88d04c0 (patch) | |
tree | 6955cf4690aa6dc87f4f84d99fcb0a665d2de5aa /components/captive_portal | |
parent | d054c43b09a963b2c138b8f7f4cb2c26a2056eb3 (diff) | |
download | chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.zip chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.gz chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.bz2 |
replace COMPILE_ASSERT with static_assert in components/
BUG=442514
Review URL: https://codereview.chromium.org/794683005
Cr-Commit-Position: refs/heads/master@{#309464}
Diffstat (limited to 'components/captive_portal')
-rw-r--r-- | components/captive_portal/captive_portal_types.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/captive_portal/captive_portal_types.cc b/components/captive_portal/captive_portal_types.cc index a7aec2f..d47762d 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 |