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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-26 16:49:42 -08:00
parent df9164f7e5
commit 2268b6b212
2 changed files with 8 additions and 8 deletions

View file

@ -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