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

Unified Diff: Source/platform/text/TextRun.cpp

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (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/platform/text/TextBreakIterator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/TextRun.cpp
diff --git a/Source/platform/text/TextRun.cpp b/Source/platform/text/TextRun.cpp
index c9ef82a6baa42a1a0ba5181f4d9a1f3b3c78f26b..e5695cfc234fe05e5d1933b25cd3f56783c52b60 100644
--- a/Source/platform/text/TextRun.cpp
+++ b/Source/platform/text/TextRun.cpp
@@ -40,7 +40,7 @@ struct ExpectedTextRunSize {
RefPtr<TextRun::RenderingContext> renderingContext;
};
-COMPILE_ASSERT(sizeof(TextRun) == sizeof(ExpectedTextRunSize), TextRun_is_not_of_expected_size);
+static_assert(sizeof(TextRun) == sizeof(ExpectedTextRunSize), "TextRun should have expected size");
void TextRun::setText(const String& string)
{
« no previous file with comments | « Source/platform/text/TextBreakIterator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698