Merge pull request #290 from GullCode/ui_tv_warning_fix

removed unused var
This commit is contained in:
Erwin Ried 2021-02-03 22:20:34 +01:00 committed by GitHub
commit e0e57e5af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -199,7 +199,7 @@ void AnalogTvView::on_show_options_rf_gain() {
void AnalogTvView::on_show_options_modulation() {
std::unique_ptr<Widget> widget;
const auto modulation = static_cast<ReceiverModel::Mode>(receiver_model.modulation());
static_cast<ReceiverModel::Mode>(receiver_model.modulation());
tv.show_audio_spectrum_view(true);
set_options_widget(std::move(widget));
@ -216,6 +216,7 @@ void AnalogTvView::on_reference_ppm_correction_changed(int32_t v) {
}
void AnalogTvView::on_headphone_volume_changed(int32_t v) {
(void)v; //avoid warning
//tv::TVView::set_headphone_volume(this,v);
}

View File

@ -107,7 +107,7 @@ private:
std::unique_ptr<Widget> options_widget { };
tv::TVWidget tv { true };
tv::TVWidget tv { };
void on_tuning_frequency_changed(rf::Frequency f);
void on_baseband_bandwidth_changed(uint32_t bandwidth_hz);

View File

@ -182,7 +182,7 @@ void TVView::clear() {
/* TVWidget *******************************************************/
TVWidget::TVWidget(const bool cursor) {
TVWidget::TVWidget() {
add_children({
&tv_view,
&field_xcorr

View File

@ -92,7 +92,7 @@ class TVWidget : public View {
public:
std::function<void(int32_t offset)> on_select { };
TVWidget(const bool cursor = false);
TVWidget();
TVWidget(const TVWidget&) = delete;
TVWidget(TVWidget&&) = delete;