Changed Common::Array::resize() to default init new array elements

svn-id: r40430
This commit is contained in:
Max Horn 2009-05-10 19:17:11 +00:00
parent c7e5cc2935
commit 36818ced2a

View File

@ -209,6 +209,8 @@ public:
void resize(uint newSize) {
reserve(newSize);
for (uint i = _size; i < newSize; ++i)
_storage[i] = T();
_size = newSize;
}