mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 22:43:45 +08:00
Remove unneeded null pointer check
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
46ca83071e
commit
0ba202f6ed
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user