summaryrefslogtreecommitdiffstats
path: root/src/corelib/time/qtimezone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/time/qtimezone.cpp')
-rw-r--r--src/corelib/time/qtimezone.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/time/qtimezone.cpp b/src/corelib/time/qtimezone.cpp
index cabbbad3b5..b1ef9b172b 100644
--- a/src/corelib/time/qtimezone.cpp
+++ b/src/corelib/time/qtimezone.cpp
@@ -50,6 +50,8 @@
QT_BEGIN_NAMESPACE
+using namespace Qt::StringLiterals;
+
// Create default time zone using appropriate backend
static QTimeZonePrivate *newBackendTimeZone()
{
@@ -991,7 +993,7 @@ QDataStream &operator>>(QDataStream &ds, QTimeZone &tz)
ds >> ianaId;
if (ianaId == invalidId()) {
tz = QTimeZone();
- } else if (ianaId == QLatin1String("OffsetFromUtc")) {
+ } else if (ianaId == "OffsetFromUtc"_L1) {
int utcOffset;
QString name;
QString abbreviation;