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

Unified Diff: content/common/input/web_input_event_traits.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor adjustment 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: content/common/input/web_input_event_traits.cc
diff --git a/content/common/input/web_input_event_traits.cc b/content/common/input/web_input_event_traits.cc
index 4e9c754fe8fdacc7aea0764be99a70811403c937..fff5673131bdf0b4d02b678b60ead7d5c8777731 100644
--- a/content/common/input/web_input_event_traits.cc
+++ b/content/common/input/web_input_event_traits.cc
@@ -205,8 +205,8 @@ bool CanCoalesce(const WebTouchEvent& event_to_coalesce,
event.touchesLength > WebTouchEvent::touchesLengthCap)
return false;
- COMPILE_ASSERT(WebTouchEvent::touchesLengthCap <= sizeof(int32_t) * 8U,
- suboptimal_touches_length_cap_size);
+ static_assert(WebTouchEvent::touchesLengthCap <= sizeof(int32_t) * 8U,
+ "suboptimal touchesLengthCap size");
// Ensure that we have a 1-to-1 mapping of pointer ids between touches.
std::bitset<WebTouchEvent::touchesLengthCap> unmatched_event_touches(
(1 << event.touchesLength) - 1);

Powered by Google App Engine
This is Rietveld 408576698