From 2268b6b212fca6bd84b11422b2b4f6eab6ad51ab Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 26 Jan 2020 16:49:42 -0800 Subject: code cleanup: QLatin1Literal is deprecated in Qt 5.14 Simply replace it with QLatin1String. There is a tiny performance penalty, but none of that code would care. Signed-off-by: Dirk Hohndel --- core/qt-init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/qt-init.cpp b/core/qt-init.cpp index 105742b82..d77abfb89 100644 --- a/core/qt-init.cpp +++ b/core/qt-init.cpp @@ -76,9 +76,9 @@ void init_qt_late() qtTranslator = new QTranslator; QString translationLocation; #if defined(Q_OS_ANDROID) - translationLocation = QLatin1Literal("assets:/translations"); + translationLocation = QLatin1String("assets:/translations"); #elif defined(Q_OS_IOS) - translationLocation = QLatin1Literal(":/"); + translationLocation = QLatin1String(":/"); #else translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath); #endif -- cgit v1.2.3-70-g09d2