diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-05-10 16:23:42 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-05-12 07:43:34 +0200 |
commit | b62bff2ef3a6c846462e5381664651f49944261a (patch) | |
tree | d997b9049fd01100826a589bed18c31cae5644c9 /tests/auto/corelib/text/qstringiterator | |
parent | 3aed50d48863dbfcfc14dbf6f961209467fc909b (diff) |
Use QChar::fromUcs4() more
Change-Id: I02be41de92d84145186de9ac5f5ea3541a941964
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qstringiterator')
-rw-r--r-- | tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp b/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp index 7d5504c22c..922063e779 100644 --- a/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp +++ b/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp @@ -203,7 +203,7 @@ void tst_QStringIterator::sweep() if (codePoint == ~0u) rebuiltString += *(i.position() - 1); else - rebuiltString += QString::fromUcs4(&codePoint, 1); + rebuiltString += QChar::fromUcs4(codePoint); ++count; } @@ -244,7 +244,7 @@ void tst_QStringIterator::sweep() QVERIFY(peekedCodePoint == codePoint); QVERIFY(codePoint <= 0x10FFFFu); - rebuiltString += QString::fromUcs4(&codePoint, 1); + rebuiltString += QChar::fromUcs4(codePoint); ++count; } |