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

Unified Diff: Source/wtf/VectorTraits.h

Issue 299353004: Oilpan: move editing objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make test wrapper class finalized Created 6 years, 7 months 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/xml/XMLSerializer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/VectorTraits.h
diff --git a/Source/wtf/VectorTraits.h b/Source/wtf/VectorTraits.h
index 7716835a1b5c0033ff7e984f846eba86ac315932..636dd062035025e69d1b0d47d7bb4b6958274bc9 100644
--- a/Source/wtf/VectorTraits.h
+++ b/Source/wtf/VectorTraits.h
@@ -108,6 +108,15 @@ namespace WTF { \
}; \
}
+#define WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(ClassName) \
+namespace WTF { \
+ template<> \
+ struct VectorTraits<ClassName> : VectorTraitsBase<ClassName> \
+ { \
+ static const bool canInitializeWithMemset = true; \
+ }; \
+}
+
using WTF::VectorTraits;
using WTF::SimpleClassVectorTraits;
« no previous file with comments | « Source/core/xml/XMLSerializer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698