Fix implicit lambda captures of this by [=]
Those implicit captures were deprecated in C++20
This commit is contained in:
@@ -341,7 +341,6 @@ SaControlsDialog::SaControlsDialog(SaControls *controls, SaProcessor *processor)
|
||||
m_waterfall = new SaWaterfallView(controls, processor, this);
|
||||
display_splitter->addWidget(m_waterfall);
|
||||
m_waterfall->setVisible(m_controls->m_waterfallModel.value());
|
||||
connect(&controls->m_waterfallModel, &BoolModel::dataChanged, [=] {m_waterfall->updateVisibility();});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ SaWaterfallView::SaWaterfallView(SaControls *controls, SaProcessor *processor, Q
|
||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
|
||||
connect(getGUI()->mainWindow(), SIGNAL(periodicUpdate()), this, SLOT(periodicUpdate()));
|
||||
connect(&controls->m_waterfallModel, &BoolModel::dataChanged, this, &SaWaterfallView::updateVisibility);
|
||||
|
||||
m_displayTop = 1;
|
||||
m_displayBottom = height() -2;
|
||||
|
||||
@@ -47,7 +47,7 @@ NineButtonSelector::NineButtonSelector(std::array<QPixmap, 18> onOffIcons, int d
|
||||
m_buttons[i]->setActiveGraphic(onOffIcons[i * 2]);
|
||||
m_buttons[i]->setInactiveGraphic(onOffIcons[(i * 2) + 1]);
|
||||
m_buttons[i]->setChecked(false);
|
||||
connect(m_buttons[i].get(), &PixmapButton::clicked, this, [=](){ this->buttonClicked(i); });
|
||||
connect(m_buttons[i].get(), &PixmapButton::clicked, this, [=, this](){ buttonClicked(i); });
|
||||
}
|
||||
|
||||
m_lastBtn = m_buttons[defaultButton].get();
|
||||
|
||||
Reference in New Issue
Block a user