mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-29 21:42:26 -04:00
Merge pull request #1509 from srcejon/fix_warnings_unused_vars
Fix unused variable warnings
This commit is contained in:
commit
b6e13d1e6c
@ -369,6 +369,9 @@ void AISDemodGUI::filter()
|
|||||||
|
|
||||||
void AISDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
void AISDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
|
|
||||||
RollupContents *rollupContents = getRollupContents();
|
RollupContents *rollupContents = getRollupContents();
|
||||||
|
|
||||||
if (rollupContents->hasExpandableWidgets()) {
|
if (rollupContents->hasExpandableWidgets()) {
|
||||||
|
@ -418,6 +418,9 @@ void PagerDemodGUI::filter()
|
|||||||
|
|
||||||
void PagerDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
void PagerDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
|
|
||||||
RollupContents *rollupContents = getRollupContents();
|
RollupContents *rollupContents = getRollupContents();
|
||||||
|
|
||||||
if (rollupContents->hasExpandableWidgets()) {
|
if (rollupContents->hasExpandableWidgets()) {
|
||||||
|
@ -475,6 +475,9 @@ void RadiosondeDemodGUI::filter()
|
|||||||
|
|
||||||
void RadiosondeDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
void RadiosondeDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
|
|
||||||
RollupContents *rollupContents = getRollupContents();
|
RollupContents *rollupContents = getRollupContents();
|
||||||
|
|
||||||
if (rollupContents->hasExpandableWidgets()) {
|
if (rollupContents->hasExpandableWidgets()) {
|
||||||
|
@ -209,6 +209,9 @@ void RadioClockGUI::on_timezone_currentIndexChanged(int index)
|
|||||||
|
|
||||||
void RadioClockGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
void RadioClockGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
|
|
||||||
RollupContents *rollupContents = getRollupContents();
|
RollupContents *rollupContents = getRollupContents();
|
||||||
|
|
||||||
if (rollupContents->hasExpandableWidgets()) {
|
if (rollupContents->hasExpandableWidgets()) {
|
||||||
|
@ -144,7 +144,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message)
|
|||||||
else if (SatelliteTrackerReport::MsgReportAOS::match(message))
|
else if (SatelliteTrackerReport::MsgReportAOS::match(message))
|
||||||
{
|
{
|
||||||
SatelliteTrackerReport::MsgReportAOS& aosReport = (SatelliteTrackerReport::MsgReportAOS&) message;
|
SatelliteTrackerReport::MsgReportAOS& aosReport = (SatelliteTrackerReport::MsgReportAOS&) message;
|
||||||
aos(aosReport.getName(), aosReport.getSpeech());
|
aos(aosReport.getSpeech());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (SatelliteTrackerReport::MsgReportTarget::match(message))
|
else if (SatelliteTrackerReport::MsgReportTarget::match(message))
|
||||||
@ -156,7 +156,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message)
|
|||||||
else if (SatelliteTrackerReport::MsgReportLOS::match(message))
|
else if (SatelliteTrackerReport::MsgReportLOS::match(message))
|
||||||
{
|
{
|
||||||
SatelliteTrackerReport::MsgReportLOS& losReport = (SatelliteTrackerReport::MsgReportLOS&) message;
|
SatelliteTrackerReport::MsgReportLOS& losReport = (SatelliteTrackerReport::MsgReportLOS&) message;
|
||||||
los(losReport.getName(), losReport.getSpeech());
|
los(losReport.getSpeech());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (SatelliteTracker::MsgSatData::match(message))
|
else if (SatelliteTracker::MsgSatData::match(message))
|
||||||
@ -400,7 +400,7 @@ void SatelliteTrackerGUI::onMenuDialogCalled(const QPoint &p)
|
|||||||
resetContextMenuType();
|
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
|
// Call plotChart() to start the periodic updates with sat position in polar chart
|
||||||
plotChart();
|
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
|
// Give speech notification of end of pass
|
||||||
if (!speech.isEmpty()) {
|
if (!speech.isEmpty()) {
|
||||||
|
@ -111,8 +111,8 @@ private:
|
|||||||
explicit SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr);
|
explicit SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr);
|
||||||
virtual ~SatelliteTrackerGUI();
|
virtual ~SatelliteTrackerGUI();
|
||||||
|
|
||||||
void aos(const QString& name, const QString &speech);
|
void aos(const QString &speech);
|
||||||
void los(const QString& name, const QString &speech);
|
void los(const QString &speech);
|
||||||
|
|
||||||
void blockApplySettings(bool block);
|
void blockApplySettings(bool block);
|
||||||
void applySettings(bool force = false);
|
void applySettings(bool force = false);
|
||||||
|
@ -29,6 +29,8 @@ double SciDoubleSpinBox::valueFromText(const QString &text) const
|
|||||||
|
|
||||||
QValidator::State SciDoubleSpinBox::validate(QString &input, int &pos) const
|
QValidator::State SciDoubleSpinBox::validate(QString &input, int &pos) const
|
||||||
{
|
{
|
||||||
|
(void) pos;
|
||||||
|
|
||||||
bool ok;
|
bool ok;
|
||||||
input.toDouble(&ok);
|
input.toDouble(&ok);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user