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

Unified Diff: net/http/http_server_properties.cc

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply fixups Created 5 years, 11 months 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 | « net/http/http_security_headers.cc ('k') | net/proxy/proxy_config_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 25725a8bd953e4c6ec6d3808316634af16e2a9bc..8680cd1941637687984d86248041e471da010c7e 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -25,9 +25,9 @@ const char* const kAlternateProtocolStrings[] = {
"quic"
};
-COMPILE_ASSERT(
- arraysize(kAlternateProtocolStrings) == NUM_VALID_ALTERNATE_PROTOCOLS,
- kAlternateProtocolStringsSize_kNumValidAlternateProtocols_not_equal);
+static_assert(arraysize(kAlternateProtocolStrings) ==
+ NUM_VALID_ALTERNATE_PROTOCOLS,
+ "kAlternateProtocolStrings has incorrect size");
} // namespace
« no previous file with comments | « net/http/http_security_headers.cc ('k') | net/proxy/proxy_config_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698