mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
df9164f7e5
commit
2268b6b212
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue