Solve cppcheck warnings

This commit is contained in:
lupoDharkael
2018-05-26 18:38:06 +02:00
parent dcaa2e321f
commit 49227fac43
15 changed files with 13 additions and 28 deletions

View File

@@ -48,9 +48,9 @@ int main(int argc, char *argv[]) {
QTranslator translator;
QStringList trPaths = PathInfo::translationsPaths();
bool match = false;
for (const QString &path: trPaths) {
match = translator.load(QLocale::system().language(),
bool match = translator.load(QLocale::system().language(),
"Internationalization", "_",
path);
if (match) {