1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Merge pull request #1509 from srcejon/fix_warnings_unused_vars

Fix unused variable warnings
This commit is contained in:
Edouard Griffiths 2022-11-09 21:30:56 +01:00 committed by GitHub
commit b6e13d1e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -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()) {

View File

@ -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()) {

View File

@ -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);

View File

@ -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) {