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:
parent
449b45ff34
commit
1e387cf800
@ -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';
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user