remove incorrect QString::grow() call from QString::resize()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-07-26 10:45:20 +00:00
parent ee372c76ce
commit 53b54fc8a6

View file

@ -1063,7 +1063,7 @@ void QString::resize(int size)
d = x;
} else {
if (d->ref != 1 || size != d->capacity)
reallocData(grow(size));
reallocData(size);
if (d->capacity >= size) {
d->size = size;
if (d->data == d->array) {