diff options
Diffstat (limited to 'src/corelib/time')
-rw-r--r-- | src/corelib/time/qdatetimeparser.cpp | 4 | ||||
-rw-r--r-- | src/corelib/time/qtimezoneprivate_tz.cpp | 2 |
2 files changed, 3 insertions, 3 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 == ':')) diff --git a/src/corelib/time/qtimezoneprivate_tz.cpp b/src/corelib/time/qtimezoneprivate_tz.cpp index 01f9a6cce0..d40f4612d5 100644 --- a/src/corelib/time/qtimezoneprivate_tz.cpp +++ b/src/corelib/time/qtimezoneprivate_tz.cpp @@ -91,7 +91,7 @@ static QTzTimeZoneHash loadTzTimeZones() while (!ts.atEnd()) { const QString line = ts.readLine(); // Comment lines are prefixed with a # - if (!line.isEmpty() && line.at(0) != '#') { + if (!line.isEmpty() && line.at(0) != u'#') { // Data rows are tab-separated columns Region, Coordinates, ID, Optional Comments const auto parts = line.splitRef(QLatin1Char('\t')); QTzTimeZone zone; |