QLatin1Literal no longer exists (?)

QStringLiteral seems like a fine workaround
This commit is contained in:
zneix 2021-07-31 12:43:04 +02:00
parent 4958a13240
commit 6c6edc10bb
No known key found for this signature in database
GPG key ID: 911916E0523B22F6

View file

@ -102,7 +102,7 @@ void LoggingChannel::addMessage(MessagePtr message)
QString LoggingChannel::generateOpeningString(const QDateTime &now) const
{
QString ret = QLatin1Literal("# Start logging at ");
QString ret = QStringLiteral("# Start logging at ");
ret.append(now.toString("yyyy-MM-dd HH:mm:ss "));
ret.append(now.timeZoneAbbreviation());
@ -113,7 +113,7 @@ QString LoggingChannel::generateOpeningString(const QDateTime &now) const
QString LoggingChannel::generateClosingString(const QDateTime &now) const
{
QString ret = QLatin1Literal("# Stop logging at ");
QString ret = QStringLiteral("# Stop logging at ");
ret.append(now.toString("yyyy-MM-dd HH:mm:ss"));
ret.append(now.timeZoneAbbreviation());