Merge pull request #1509 from srcejon/fix_warnings_unused_vars

Fix unused variable warnings
pull/1510/head
Edouard Griffiths 2022-11-09 21:30:56 +01:00 zatwierdzone przez GitHub
commit b6e13d1e6c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
7 zmienionych plików z 20 dodań i 6 usunięć

Wyświetl plik

@ -369,6 +369,9 @@ void AISDemodGUI::filter()
void AISDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
RollupContents *rollupContents = getRollupContents();
if (rollupContents->hasExpandableWidgets()) {

Wyświetl plik

@ -418,6 +418,9 @@ void PagerDemodGUI::filter()
void PagerDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
RollupContents *rollupContents = getRollupContents();
if (rollupContents->hasExpandableWidgets()) {

Wyświetl plik

@ -475,6 +475,9 @@ void RadiosondeDemodGUI::filter()
void RadiosondeDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
RollupContents *rollupContents = getRollupContents();
if (rollupContents->hasExpandableWidgets()) {

Wyświetl plik

@ -209,6 +209,9 @@ void RadioClockGUI::on_timezone_currentIndexChanged(int index)
void RadioClockGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
RollupContents *rollupContents = getRollupContents();
if (rollupContents->hasExpandableWidgets()) {

Wyświetl plik

@ -144,7 +144,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message)
else if (SatelliteTrackerReport::MsgReportAOS::match(message))
{
SatelliteTrackerReport::MsgReportAOS& aosReport = (SatelliteTrackerReport::MsgReportAOS&) message;
aos(aosReport.getName(), aosReport.getSpeech());
aos(aosReport.getSpeech());
return true;
}
else if (SatelliteTrackerReport::MsgReportTarget::match(message))
@ -156,7 +156,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message)
else if (SatelliteTrackerReport::MsgReportLOS::match(message))
{
SatelliteTrackerReport::MsgReportLOS& losReport = (SatelliteTrackerReport::MsgReportLOS&) message;
los(losReport.getName(), losReport.getSpeech());
los(losReport.getSpeech());
return true;
}
else if (SatelliteTracker::MsgSatData::match(message))
@ -400,7 +400,7 @@ void SatelliteTrackerGUI::onMenuDialogCalled(const QPoint &p)
resetContextMenuType();
}
void SatelliteTrackerGUI::aos(const QString& name, const QString &speech)
void SatelliteTrackerGUI::aos(const QString &speech)
{
// Call plotChart() to start the periodic updates with sat position in polar chart
plotChart();
@ -410,7 +410,7 @@ void SatelliteTrackerGUI::aos(const QString& name, const QString &speech)
}
}
void SatelliteTrackerGUI::los(const QString& name, const QString &speech)
void SatelliteTrackerGUI::los(const QString &speech)
{
// Give speech notification of end of pass
if (!speech.isEmpty()) {

Wyświetl plik

@ -111,8 +111,8 @@ private:
explicit SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr);
virtual ~SatelliteTrackerGUI();
void aos(const QString& name, const QString &speech);
void los(const QString& name, const QString &speech);
void aos(const QString &speech);
void los(const QString &speech);
void blockApplySettings(bool block);
void applySettings(bool force = false);

Wyświetl plik

@ -29,6 +29,8 @@ double SciDoubleSpinBox::valueFromText(const QString &text) const
QValidator::State SciDoubleSpinBox::validate(QString &input, int &pos) const
{
(void) pos;
bool ok;
input.toDouble(&ok);
if (ok) {