summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-01-29 11:12:12 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-15 20:25:57 +0000
commitf325bdacb6d236f419f9a8f76f60cea2b58f5fb5 (patch)
tree352d2b8b7d0351ebe4c68b70902edb9bdecf4865 /src/corelib/text
parent2ad63a097596c7f5fc3f165f24bfbbd7af7c5ef3 (diff)
Replace ushort*/uint* with char16_t*/char32_t* in private API [1]
Task-number: QTBUG-110403 Pick-to: 6.5 Change-Id: Ie20a831f22212d56659cf3c6940d17134ab5f2c5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qchar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qchar.cpp b/src/corelib/text/qchar.cpp
index 272de292c5..4175b6c849 100644
--- a/src/corelib/text/qchar.cpp
+++ b/src/corelib/text/qchar.cpp
@@ -2060,7 +2060,7 @@ static bool normalizationQuickCheckHelper(QString *str, QString::NormalizationFo
enum { NFQC_YES = 0, NFQC_NO = 1, NFQC_MAYBE = 3 };
- const ushort *string = reinterpret_cast<const ushort *>(str->constData());
+ const auto *string = reinterpret_cast<const char16_t *>(str->constData());
qsizetype length = str->size();
// this avoids one out of bounds check in the loop