QString: use '\0' instead of 0

Matches other places in the code.

Change-Id: I5ede3a52875235cc6355f651b7205b7c5ed46d90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2022-10-21 16:47:45 +02:00
parent 449b45ff34
commit 1e387cf800

View File

@ -2703,7 +2703,7 @@ void QString::resize(qsizetype size)
reallocData(size, QArrayData::Grow);
d.size = size;
if (d->allocatedCapacity())
d.data()[size] = 0;
d.data()[size] = u'\0';
}
/*!