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

Unified Diff: Source/core/dom/Node.cpp

Issue 792083006: replace COMPILE_ASSERT with static_assert in core/dom/ (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/dom/ElementRareData.cpp ('k') | Source/core/dom/NodeRareData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index b6a41e05c0776e04a007a9613f98db44ba72ccca..e9ddd35ef8172d70534cd19a8065ba7792b12633 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -107,7 +107,7 @@ struct SameSizeAsNode : NODE_BASE_CLASSES {
void* m_pointer[5];
};
-COMPILE_ASSERT(sizeof(Node) <= sizeof(SameSizeAsNode), Node_should_stay_small);
+static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small");
#if !ENABLE(OILPAN)
void* Node::operator new(size_t size)
« no previous file with comments | « Source/core/dom/ElementRareData.cpp ('k') | Source/core/dom/NodeRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698