mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:40:05 +00:00
"this" must be explicit in lambda capture
This commit is contained in:
parent
31db9a4315
commit
a3afd71f03
19 changed files with 132 additions and 129 deletions
|
|
@ -269,14 +269,14 @@ void MainWindow::on_actionOpenNexrad_triggered()
|
|||
dialog,
|
||||
&QFileDialog::finished,
|
||||
this,
|
||||
[=]() { update(); },
|
||||
[this]() { update(); },
|
||||
Qt::QueuedConnection);
|
||||
|
||||
connect(
|
||||
dialog,
|
||||
&QFileDialog::fileSelected,
|
||||
this,
|
||||
[=](const QString& file)
|
||||
[=, this](const QString& file)
|
||||
{
|
||||
logger_->info("Selected: {}", file.toStdString());
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ void MainWindow::on_actionOpenNexrad_triggered()
|
|||
request.get(),
|
||||
&request::NexradFileRequest::RequestComplete,
|
||||
this,
|
||||
[=](std::shared_ptr<request::NexradFileRequest> request)
|
||||
[=, this](std::shared_ptr<request::NexradFileRequest> request)
|
||||
{
|
||||
std::shared_ptr<types::RadarProductRecord> record =
|
||||
request->radar_product_record();
|
||||
|
|
@ -331,13 +331,13 @@ void MainWindow::on_actionOpenTextEvent_triggered()
|
|||
dialog,
|
||||
&QFileDialog::finished,
|
||||
this,
|
||||
[=]() { update(); },
|
||||
[this]() { update(); },
|
||||
Qt::QueuedConnection);
|
||||
|
||||
connect(dialog,
|
||||
&QFileDialog::fileSelected,
|
||||
this,
|
||||
[=](const QString& file)
|
||||
[this](const QString& file)
|
||||
{
|
||||
logger_->info("Selected: {}", file.toStdString());
|
||||
p->textEventManager_->LoadFile(file.toStdString());
|
||||
|
|
@ -483,7 +483,7 @@ void MainWindowImpl::ConfigureMapLayout()
|
|||
|
||||
maps_.resize(mapCount);
|
||||
|
||||
auto MoveSplitter = [=](int /*pos*/, int /*index*/)
|
||||
auto MoveSplitter = [=, this](int /*pos*/, int /*index*/)
|
||||
{
|
||||
QSplitter* s = static_cast<QSplitter*>(sender());
|
||||
|
||||
|
|
@ -575,7 +575,7 @@ void MainWindowImpl::ConnectOtherSignals()
|
|||
connect(qApp,
|
||||
&QApplication::focusChanged,
|
||||
mainWindow_,
|
||||
[=](QWidget* /*old*/, QWidget* now) { HandleFocusChange(now); });
|
||||
[this](QWidget* /*old*/, QWidget* now) { HandleFocusChange(now); });
|
||||
connect(level2ProductsWidget_,
|
||||
&ui::Level2ProductsWidget::RadarProductSelected,
|
||||
mainWindow_,
|
||||
|
|
@ -605,7 +605,7 @@ void MainWindowImpl::ConnectOtherSignals()
|
|||
alertDockWidget_,
|
||||
&ui::AlertDockWidget::MoveMap,
|
||||
this,
|
||||
[=](double latitude, double longitude)
|
||||
[this](double latitude, double longitude)
|
||||
{
|
||||
for (map::MapWidget* map : maps_)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue