forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user