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

Unified Diff: ui/base/x/selection_owner.cc

Issue 828633002: replace COMPILE_ASSERT with static_assert in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for rebase 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 | « ui/base/resource/data_pack.cc ('k') | ui/base/x/selection_requestor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_owner.cc
diff --git a/ui/base/x/selection_owner.cc b/ui/base/x/selection_owner.cc
index 73c6d3e1c06cfefa3be34e682c926bb47dfc3ad0..4dbfb09cc998bddd52faf18324db77d5f356797e 100644
--- a/ui/base/x/selection_owner.cc
+++ b/ui/base/x/selection_owner.cc
@@ -40,8 +40,8 @@ const int kTimerPeriodMs = 1000;
// sent by the selection owner before aborting an incremental data transfer.
const int kIncrementalTransferTimeoutMs = 10000;
-COMPILE_ASSERT(kTimerPeriodMs <= kIncrementalTransferTimeoutMs,
- timer_period_must_be_less_or_equal_to_transfer_timeout);
+static_assert(kTimerPeriodMs <= kIncrementalTransferTimeoutMs,
+ "timer period must be <= transfer timeout");
// Returns a conservative max size of the data we can pass into
// XChangeProperty(). Copied from GTK.
« no previous file with comments | « ui/base/resource/data_pack.cc ('k') | ui/base/x/selection_requestor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698