diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-04-27 11:16:52 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-04-30 07:49:43 +0200 |
commit | 915e756a426ccb0ad4d4322182d1468a995b4c18 (patch) | |
tree | b75f92d9289bd8516760cdc5cae4196b7cb87cdb /src/corelib/time/qdatetimeparser.cpp | |
parent | 2e41a466903852facc3f3f0100d04149b72b2409 (diff) |
QtCore: fix a few more char/int/uint -> QChar conversions
They were masked by all QChar ctors being made explicit, except the
char16_t one, which was left as the only viable choice.
Change-Id: I5632795f3c7dd1de3830285d5446d9b994613466
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/time/qdatetimeparser.cpp')
-rw-r--r-- | src/corelib/time/qdatetimeparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/time/qdatetimeparser.cpp b/src/corelib/time/qdatetimeparser.cpp index bc3d9b992e..860f975b4f 100644 --- a/src/corelib/time/qdatetimeparser.cpp +++ b/src/corelib/time/qdatetimeparser.cpp @@ -1663,9 +1663,9 @@ QDateTimeParser::findTimeZone(QStringRef str, const QDateTime &when, // Collect up plausibly-valid characters; let QTimeZone work out what's truly valid. while (index < size) { - QChar here = str[index]; + const auto here = str[index].unicode(); if (here < 127 - && (here.isLetterOrNumber() + && (QChar::isLetterOrNumber(here) || here == '/' || here == '-' || here == '_' || here == '.' || here == '+' || here == ':')) |