Explilitly ignore the return value of QTranslator::load()

Otherwise we are getting warning about unused return type
of function marked with [[nodiscard]].

Change-Id: I07b464cc641ff1b6e36a0c84115deed1701e40d3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2020-11-13 11:57:44 +01:00
parent 1fd7e9b242
commit 7a14e38b7e

View File

@@ -588,7 +588,7 @@ int main(int argc, char **argv)
app.setProperty("qtc_locale", locale);
break;
}
translator.load(QString()); // unload()
Q_UNUSED(translator.load(QString())); // unload()
} else if (locale == QLatin1String("C") /* overrideLanguage == "English" */) {
// use built-in
break;