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

Unified Diff: chrome/installer/util/channel_info.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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/installer/setup/setup_main.cc ('k') | chrome/installer/util/delete_tree_work_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/channel_info.cc
diff --git a/chrome/installer/util/channel_info.cc b/chrome/installer/util/channel_info.cc
index ca181d36bfe1af6e89002ca465030243006043a8..a15e4cba670a17fa8ba0afdc3316295c5bf01bf2 100644
--- a/chrome/installer/util/channel_info.cc
+++ b/chrome/installer/util/channel_info.cc
@@ -53,8 +53,8 @@ enum ModifierIndex {
NUM_MODIFIERS
};
-COMPILE_ASSERT(NUM_MODIFIERS == arraysize(kModifiers),
- kModifiers_disagrees_with_ModifierIndex_comma_they_must_match_bang);
+static_assert(NUM_MODIFIERS == arraysize(kModifiers),
+ "kModifiers disagrees with ModifierIndex; they must match!");
// Returns true if the modifier is found, in which case |position| holds the
// location at which the modifier was found. The number of characters in the
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/delete_tree_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698