summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstring.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-05-06 11:05:08 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-05-11 08:45:36 +0200
commit2c1425898d21fb050da69eb5f423e6f4ba86080a (patch)
tree38660a61922a8ed9900b75e2d8456905ae8de56a /src/corelib/text/qstring.cpp
parent1030d934c4e385c2c53abbcb4e457a86a8db3436 (diff)
Modernize foldCase() internal functions
Overload uint/ushort versions with new char16_t/char32_t ones, and [[deprecate]] the old ones. There's too much churn for doing the replacement in one patch. Change-Id: Ib1f90a1c46b80aa0fb1ea00ce614af49f49bd712 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text/qstring.cpp')
-rw-r--r--src/corelib/text/qstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index bd8f536587..6b825212d3 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -879,7 +879,7 @@ static int ucstricmp(const QChar *a, const QChar *ae, const char *b, const char
e = a + (be - b);
while (a < e) {
- int diff = foldCase(a->unicode()) - foldCase(uchar(*b));
+ int diff = foldCase(a->unicode()) - foldCase(char16_t{uchar(*b)});
if ((diff))
return diff;
++a;