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

Unified Diff: Source/wtf/text/TextCodec.h

Issue 802203004: replace COMPILE_ASSERT with static assert in wtf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: search/replace fixup 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: Source/wtf/text/TextCodec.h
diff --git a/Source/wtf/text/TextCodec.h b/Source/wtf/text/TextCodec.h
index e85413e0a17c71a55ed315d9a1ca5c4548d05715..6bf2552e6b8a2438b2892a8a5e0a576b83b4f270 100644
--- a/Source/wtf/text/TextCodec.h
+++ b/Source/wtf/text/TextCodec.h
@@ -66,9 +66,9 @@ enum FlushBehavior {
DataEOF
};
-COMPILE_ASSERT(!DoNotFlush, DoNotFlush_is_falsy);
-COMPILE_ASSERT(FetchEOF, FetchEOF_is_truthy);
-COMPILE_ASSERT(DataEOF, DataEOF_is_truthy);
+static_assert(!DoNotFlush, "DoNotFlush is falsy");
Nico 2014/12/16 17:56:28 s/is/should be/?
Mostyn Bramley-Moore 2014/12/16 19:00:37 Done.
+static_assert(FetchEOF, "FetchEOF is truthy");
+static_assert(DataEOF, "DataEOF is truthy");
class TextCodec {

Powered by Google App Engine
This is Rietveld 408576698