Remove unneeded null pointer check

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2017-05-16 22:58:10 +02:00
parent 46ca83071e
commit 0ba202f6ed

View File

@ -676,7 +676,7 @@ void GenericVector<T>::reserve(int size) {
T* new_array = new T[size];
for (int i = 0; i < size_used_; ++i)
new_array[i] = data_[i];
if (data_ != NULL) delete[] data_;
delete[] data_;
data_ = new_array;
size_reserved_ = size;
}