summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp')
-rw-r--r--tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp b/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp
index 922063e779..2ca1d13d4c 100644
--- a/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp
+++ b/tests/auto/corelib/text/qstringiterator/tst_qstringiterator.cpp
@@ -195,8 +195,8 @@ void tst_QStringIterator::sweep()
QString rebuiltString;
while (i.hasNext()) {
- const uint peekedCodePoint = i.peekNext(~0u);
- const uint codePoint = i.next(~0u);
+ const char32_t peekedCodePoint = i.peekNext(~0u);
+ const char32_t codePoint = i.next(~0u);
QVERIFY(peekedCodePoint == codePoint);
@@ -213,8 +213,8 @@ void tst_QStringIterator::sweep()
rebuiltString.clear();
while (i.hasPrevious()) {
- const uint peekedCodePoint = i.peekPrevious(~0u);
- const uint codePoint = i.previous(~0u);
+ const char32_t peekedCodePoint = i.peekPrevious(~0u);
+ const char32_t codePoint = i.previous(~0u);
QVERIFY(peekedCodePoint == codePoint);
@@ -239,8 +239,8 @@ void tst_QStringIterator::sweep()
if (valid) {
while (i.hasNext()) {
- const uint peekedCodePoint = i.peekNextUnchecked();
- const uint codePoint = i.nextUnchecked();
+ const char32_t peekedCodePoint = i.peekNextUnchecked();
+ const char32_t codePoint = i.nextUnchecked();
QVERIFY(peekedCodePoint == codePoint);
QVERIFY(codePoint <= 0x10FFFFu);
@@ -252,8 +252,8 @@ void tst_QStringIterator::sweep()
QTEST(rebuiltString, "string");
while (i.hasPrevious()) {
- const uint peekedCodePoint = i.peekPreviousUnchecked();
- const uint codePoint = i.previousUnchecked();
+ const char32_t peekedCodePoint = i.peekPreviousUnchecked();
+ const char32_t codePoint = i.previousUnchecked();
QVERIFY(peekedCodePoint == codePoint);