mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Fix compiler warnings
Qt6 QTranslator::load() uses [[nodiscard]] which currently leads to compiler warnings. This is fixed using static_cast<void>. Signed-off-by: ThomasZecha <zecha@ihp-microelectronics.com>
This commit is contained in:
parent
ac24a25bfb
commit
0d97f032bb
@ -89,7 +89,7 @@ int main(int argc, char *argv[])
|
|||||||
QString Lang = QucsSettings.Language;
|
QString Lang = QucsSettings.Language;
|
||||||
if(Lang.isEmpty())
|
if(Lang.isEmpty())
|
||||||
Lang = QString(QLocale::system().name());
|
Lang = QString(QLocale::system().name());
|
||||||
tor.load( QStringLiteral("qucs_") + Lang, LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + Lang, LangDir));
|
||||||
a.installTranslator( &tor );
|
a.installTranslator( &tor );
|
||||||
|
|
||||||
QucsActiveFilter *w = new QucsActiveFilter();
|
QucsActiveFilter *w = new QucsActiveFilter();
|
||||||
|
@ -94,7 +94,7 @@ int main( int argc, char ** argv )
|
|||||||
QString lang = QucsSettings.Language;
|
QString lang = QucsSettings.Language;
|
||||||
if(lang.isEmpty())
|
if(lang.isEmpty())
|
||||||
lang = QString(QLocale::system().name());
|
lang = QString(QLocale::system().name());
|
||||||
tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir));
|
||||||
a.installTranslator( &tor );
|
a.installTranslator( &tor );
|
||||||
|
|
||||||
QucsAttenuator *qucs = new QucsAttenuator();
|
QucsAttenuator *qucs = new QucsAttenuator();
|
||||||
|
@ -102,7 +102,7 @@ int main(int argc, char *argv[])
|
|||||||
QString lang = QucsSettings.Language;
|
QString lang = QucsSettings.Language;
|
||||||
if(lang.isEmpty())
|
if(lang.isEmpty())
|
||||||
lang = QString(QLocale::system().name());
|
lang = QString(QLocale::system().name());
|
||||||
tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir));
|
||||||
a.installTranslator( &tor );
|
a.installTranslator( &tor );
|
||||||
|
|
||||||
QucsFilter *qucs = new QucsFilter();
|
QucsFilter *qucs = new QucsFilter();
|
||||||
|
@ -74,7 +74,7 @@ int main(int argc, char *argv[])
|
|||||||
QString lang = QucsSettings.Language;
|
QString lang = QucsSettings.Language;
|
||||||
if(lang.isEmpty())
|
if(lang.isEmpty())
|
||||||
lang = QString(QLocale::system().name());
|
lang = QString(QLocale::system().name());
|
||||||
tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir));
|
||||||
app.installTranslator( &tor );
|
app.installTranslator( &tor );
|
||||||
|
|
||||||
QucsPowerCombiningTool *PowerCombiningTool = new QucsPowerCombiningTool();
|
QucsPowerCombiningTool *PowerCombiningTool = new QucsPowerCombiningTool();
|
||||||
|
@ -99,7 +99,7 @@ int main( int argc, char ** argv )
|
|||||||
QString lang = QucsSettings.Language;
|
QString lang = QucsSettings.Language;
|
||||||
if(lang.isEmpty())
|
if(lang.isEmpty())
|
||||||
lang = QString(QLocale::system().name());
|
lang = QString(QLocale::system().name());
|
||||||
tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir));
|
||||||
a.installTranslator( &tor );
|
a.installTranslator( &tor );
|
||||||
|
|
||||||
Qucs_S_SPAR_Viewer *qucs = new Qucs_S_SPAR_Viewer();
|
Qucs_S_SPAR_Viewer *qucs = new Qucs_S_SPAR_Viewer();
|
||||||
|
@ -136,7 +136,7 @@ int main(int argc, char *argv[])
|
|||||||
QString lang = QucsSettings.Language;
|
QString lang = QucsSettings.Language;
|
||||||
if(lang.isEmpty())
|
if(lang.isEmpty())
|
||||||
lang = QString(QLocale::system().name());
|
lang = QString(QLocale::system().name());
|
||||||
tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir));
|
||||||
a.installTranslator( &tor );
|
a.installTranslator( &tor );
|
||||||
|
|
||||||
QucsTranscalc *qucs = new QucsTranscalc();
|
QucsTranscalc *qucs = new QucsTranscalc();
|
||||||
|
@ -900,7 +900,7 @@ int main(int argc, char *argv[])
|
|||||||
lang = loc.name();
|
lang = loc.name();
|
||||||
// lang = QTextCodec::locale();
|
// lang = QTextCodec::locale();
|
||||||
}
|
}
|
||||||
tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir);
|
static_cast<void>(tor.load( QStringLiteral("qucs_") + lang, QucsSettings.LangDir));
|
||||||
QApplication::installTranslator( &tor );
|
QApplication::installTranslator( &tor );
|
||||||
|
|
||||||
// This seems to be necessary on a few system to make strtod()
|
// This seems to be necessary on a few system to make strtod()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user