From 753a08ae0e1204b148cf3935f87349eefe75d338 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Wed, 9 Mar 2022 16:34:49 +0100 Subject: QtCore: replace QLatin1String/QLatin1Char with _L1/u'' where applicable As a drive-by, did also minor refactorings/improvements. Task-number: QTBUG-98434 Change-Id: I81964176ae2f07ea63674c96f47f9c6aa046854f Reviewed-by: Edward Welbourne Reviewed-by: Qt CI Bot Reviewed-by: Thiago Macieira Reviewed-by: Anton Kudryavtsev --- src/corelib/time/qtimezone.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib/time/qtimezone.cpp') 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; -- cgit v1.2.3