tst_QString: fix custom QCOMPARE for strings > 2Gi characters
Same fix as in tst_qbytearray's QCOMPARE() in cb9715557c414d5b3c90165cc8fc710fbdcdba77. Change-Id: I2222d9015ae7121a2fbcf5b936b27de20e873064 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 20d1477c14316a43b65415bae90d1e5d12fcbf44) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
3cae2c25fc
commit
9a17766869
@ -609,7 +609,7 @@ QString verifyZeroTermination(const QString &str)
|
||||
if (!strDataPtr->isMutable())
|
||||
return str;
|
||||
|
||||
int strSize = str.size();
|
||||
qsizetype strSize = str.size();
|
||||
QChar strTerminator = str.constData()[strSize];
|
||||
if (QChar('\0') != strTerminator)
|
||||
return QString::fromLatin1(
|
||||
|
Loading…
x
Reference in New Issue
Block a user