mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 19:45:35 -04:00
[qrvthtool] TranslationManager::setTranslation(): Remove a stray ')' in the Qt5 build path.
lupdate noticed this:
src/qrvthtool/TranslationManager.cpp:155: Excess closing parenthesis in
C++ code (or abuse of the C++ preprocessor)
This fixes a regression from commit 4e0f741910
.
([qrvthtool] TranslationManager: Made some adjustments, including removing translators before updating them.)
This commit is contained in:
parent
84d2fae156
commit
5e7233cb89
@ -152,7 +152,7 @@ void TranslationManager::setTranslation(const QString &locale)
|
|||||||
# if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
# if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
||||||
QString path = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
|
QString path = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
|
||||||
# else /* QT_VERSION < QT_VERSION_CHECK(6,0,0) */
|
# else /* QT_VERSION < QT_VERSION_CHECK(6,0,0) */
|
||||||
QString path = QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
QString path = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||||
# endif /* QT_VERSION >= QT_VERSION_CHECK(6,0,0) */
|
# endif /* QT_VERSION >= QT_VERSION_CHECK(6,0,0) */
|
||||||
isLoaded[i] = d->qtTranslator[i]->load(qtLocales[i], path);
|
isLoaded[i] = d->qtTranslator[i]->load(qtLocales[i], path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user