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

Unified Diff: ash/wm/wm_types.cc

Issue 843763004: Use "static_assert" in lieu of "COMPILE_ASSERT" in ash module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/wm_types.cc
diff --git a/ash/wm/wm_types.cc b/ash/wm/wm_types.cc
index 6869426c6982670cb9a11cca6147adc9345760cf..643520c36dd0262d04c0094083b5f493359b1999 100644
--- a/ash/wm/wm_types.cc
+++ b/ash/wm/wm_types.cc
@@ -11,10 +11,9 @@ namespace ash {
namespace wm {
// This is to catch the change to WindowShowState.
-COMPILE_ASSERT(
- ui::SHOW_STATE_END ==
- static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END),
- show_enum_mismatch);
+static_assert(ui::SHOW_STATE_END ==
+ static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END),
+ "show enum mismatch");
WindowStateType ToWindowStateType(ui::WindowShowState state) {
return static_cast<WindowStateType>(state);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698