diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-26 16:49:42 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-26 16:49:42 -0800 |
commit | 2268b6b212fca6bd84b11422b2b4f6eab6ad51ab (patch) | |
tree | a3ea1908306fdb610935c7e8e835803f12441871 /core/qt-init.cpp | |
parent | df9164f7e545ff2bcd19826240a4ec1aac409c4d (diff) | |
download | subsurface-2268b6b212fca6bd84b11422b2b4f6eab6ad51ab.tar.gz |
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>
Diffstat (limited to 'core/qt-init.cpp')
-rw-r--r-- | core/qt-init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |