Bug 921871 - Fix -Wunitialized warning in Vector.h. r=Waldo

--HG--
extra : rebase_source : 117d37c7a44c79c6a3b446f3828e5464fc9e391f
This commit is contained in:
Reuben Morais 2013-10-17 18:29:46 -03:00
parent ef2ba2f3e7
commit e98ada57a9

View File

@ -566,14 +566,15 @@ template<typename T, size_t N, class AP, class TV>
MOZ_ALWAYS_INLINE
VectorBase<T, N, AP, TV>::VectorBase(AP ap)
: AP(ap),
mBegin(static_cast<T*>(storage.addr())),
mLength(0),
mCapacity(sInlineCapacity)
#ifdef DEBUG
, mReserved(sInlineCapacity),
entered(false)
#endif
{}
{
mBegin = static_cast<T*>(storage.addr());
}
/* Move constructor. */
template<typename T, size_t N, class AllocPolicy, class TV>