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

Unified Diff: Source/platform/EventTracer.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/CrossThreadCopier.cpp ('k') | Source/platform/JSONValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/EventTracer.cpp
diff --git a/Source/platform/EventTracer.cpp b/Source/platform/EventTracer.cpp
index baa7bfc85acba949b56b73f2c743984a8bb40290..e8025c944c458f05a59c0534fab38f5a179b3f6b 100644
--- a/Source/platform/EventTracer.cpp
+++ b/Source/platform/EventTracer.cpp
@@ -38,7 +38,7 @@
namespace blink {
-COMPILE_ASSERT(sizeof(Platform::TraceEventHandle) == sizeof(TraceEvent::TraceEventHandle), TraceEventHandle_types_must_be_compatible);
+static_assert(sizeof(Platform::TraceEventHandle) == sizeof(TraceEvent::TraceEventHandle), "TraceEventHandle types must be compatible");
// The dummy variable is needed to avoid a crash when someone updates the state variables
// before EventTracer::initialize() is called.
« no previous file with comments | « Source/platform/CrossThreadCopier.cpp ('k') | Source/platform/JSONValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698