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

Unified Diff: Source/core/html/parser/CompactHTMLToken.cpp

Issue 811863003: replace COMPILE_ASSERT with static_assert in core/html/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/core/html/HTMLTrackElement.cpp ('k') | Source/core/html/track/vtt/BufferedLineReaderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/CompactHTMLToken.cpp
diff --git a/Source/core/html/parser/CompactHTMLToken.cpp b/Source/core/html/parser/CompactHTMLToken.cpp
index ab999d0aed8d1780fc99be938279a8dd84d752a0..01940175059845aea2f90bd49a7de6947905b2ba 100644
--- a/Source/core/html/parser/CompactHTMLToken.cpp
+++ b/Source/core/html/parser/CompactHTMLToken.cpp
@@ -38,7 +38,7 @@ struct SameSizeAsCompactHTMLToken {
TextPosition textPosition;
};
-COMPILE_ASSERT(sizeof(CompactHTMLToken) == sizeof(SameSizeAsCompactHTMLToken), CompactHTMLToken_should_stay_small);
+static_assert(sizeof(CompactHTMLToken) == sizeof(SameSizeAsCompactHTMLToken), "CompactHTMLToken should stay small");
CompactHTMLToken::CompactHTMLToken(const HTMLToken* token, const TextPosition& textPosition)
: m_type(token->type())
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | Source/core/html/track/vtt/BufferedLineReaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698