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

Unified Diff: Source/wtf/VectorTraits.h

Issue 291933002: Initialize the memory allocated by Vector<IsPod<T>> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better change 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/wtf/Vector.h ('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 d93fa516f38fc626a14484cd98b58941aa2f3df1..7716835a1b5c0033ff7e984f846eba86ac315932 100644
--- a/Source/wtf/VectorTraits.h
+++ b/Source/wtf/VectorTraits.h
@@ -36,7 +36,6 @@ namespace WTF {
struct VectorTraitsBase
{
static const bool needsDestruction = !IsPod<T>::value;
- static const bool needsInitialization = !IsPod<T>::value;
static const bool canInitializeWithMemset = IsPod<T>::value;
static const bool canMoveWithMemcpy = IsPod<T>::value;
static const bool canCopyWithMemcpy = IsPod<T>::value;
@@ -79,7 +78,6 @@ namespace WTF {
typedef VectorTraits<Second> SecondTraits;
static const bool needsDestruction = FirstTraits::needsDestruction || SecondTraits::needsDestruction;
- static const bool needsInitialization = FirstTraits::needsInitialization || SecondTraits::needsInitialization;
static const bool canInitializeWithMemset = FirstTraits::canInitializeWithMemset && SecondTraits::canInitializeWithMemset;
static const bool canMoveWithMemcpy = FirstTraits::canMoveWithMemcpy && SecondTraits::canMoveWithMemcpy;
static const bool canCopyWithMemcpy = FirstTraits::canCopyWithMemcpy && SecondTraits::canCopyWithMemcpy;
« no previous file with comments | « Source/wtf/Vector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698