aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/main.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-06-09 11:24:29 +0200
committerEike Ziller <eike.ziller@qt.io>2023-06-09 11:24:29 +0200
commit375db16ac431b326a7c87e009f861875050a4247 (patch)
tree8dd29c7f109cbab6af7522c1616b544ff3a865b8 /src/app/main.cpp
parent804ad5a7f646739839bb3d4ef62a4771ba6fa1e1 (diff)
parent45abf54a611ae6c5dbd997d0ad5ab0a943b90f5a (diff)
Merge remote-tracking branch 'origin/11.0'
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r--src/app/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 3a2cb5bfaae..e6a7bdcd7ec 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -586,7 +586,7 @@ int main(int argc, char **argv)
QCoreApplication::setOrganizationName(QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR));
QGuiApplication::setApplicationDisplayName(Core::Constants::IDE_DISPLAY_NAME);
- auto cleanup = qScopeGuard([] { Utils::Singleton::deleteAll(); });
+ const QScopeGuard cleanup([] { Utils::Singleton::deleteAll(); });
const QStringList pluginArguments = app.arguments();
@@ -647,7 +647,7 @@ int main(int argc, char **argv)
for (QString locale : std::as_const(uiLanguages)) {
locale = QLocale(locale).name();
if (translator.load("qtcreator_" + locale, creatorTrPath)) {
- const QString &qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
+ const QString &qtTrPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
const QString &qtTrFile = QLatin1String("qt_") + locale;
// Binary installer puts Qt tr files into creatorTrPath
if (qtTranslator.load(qtTrFile, qtTrPath) || qtTranslator.load(qtTrFile, creatorTrPath)) {