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

Unified Diff: Source/wtf/unicode/Unicode.h

Issue 802203004: replace COMPILE_ASSERT with static assert in wtf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups 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
« no previous file with comments | « Source/wtf/text/TextCodec.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/unicode/Unicode.h
diff --git a/Source/wtf/unicode/Unicode.h b/Source/wtf/unicode/Unicode.h
index ba509732770a1a2e056510f1e6eafaa9d8d10523..f461d9ed421f2e337b8696f7131245c294830ebc 100644
--- a/Source/wtf/unicode/Unicode.h
+++ b/Source/wtf/unicode/Unicode.h
@@ -30,6 +30,6 @@ typedef unsigned char LChar;
#include "wtf/unicode/icu/UnicodeIcu.h"
-COMPILE_ASSERT(sizeof(UChar) == 2, UCharIsTwoBytes);
+static_assert(sizeof(UChar) == 2, "UChar should be two bytes");
#endif // WTF_UNICODE_H
« no previous file with comments | « Source/wtf/text/TextCodec.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698