diff options
| author | Alexander Taylor <alex@vector35.com> | 2025-05-28 00:10:51 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2025-06-25 18:36:48 -0400 |
| commit | 8a4dafc1b6ea114a30844dd153de2714d2d286f9 (patch) | |
| tree | c6a6fa1c60e420c1ceb8577d4e2f79bb9133b55a /view/sharedcache/ui | |
| parent | 0838242066437a04e3aa3417cab703cc071adde6 (diff) | |
Fix cxx20 compiler warnings.
Diffstat (limited to 'view/sharedcache/ui')
| -rw-r--r-- | view/sharedcache/ui/dsctriage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/view/sharedcache/ui/dsctriage.cpp b/view/sharedcache/ui/dsctriage.cpp index b367b809..32a8e97c 100644 --- a/view/sharedcache/ui/dsctriage.cpp +++ b/view/sharedcache/ui/dsctriage.cpp @@ -269,7 +269,7 @@ QWidget* DSCTriageView::initImageTable() m_imageTable->setFilter(filter.toStdString()); }); - connect(m_imageTable, &FilterableTableView::activated, this, [=](const QModelIndex& index) { + connect(m_imageTable, &FilterableTableView::activated, this, [=, this](const QModelIndex& index) { auto addr = m_imageModel->item(index.row(), 0)->text().toULongLong(nullptr, 16); loadImagesWithAddr({addr}); }); @@ -360,7 +360,7 @@ void DSCTriageView::initSymbolTable() auto symbolWidget = new QWidget; symbolWidget->setLayout(symbolLayout); - connect(m_symbolTable, &SymbolTableView::activated, this, [=](const QModelIndex& index){ + connect(m_symbolTable, &SymbolTableView::activated, this, [=, this](const QModelIndex& index){ auto symbol = m_symbolTable->getSymbolAtRow(index.row()); auto dialog = new QMessageBox(this); @@ -375,7 +375,7 @@ void DSCTriageView::initSymbolTable() dialog->setText("Load " + QString::fromStdString(image->name) + "?"); dialog->setStandardButtons(QMessageBox::Yes | QMessageBox::No); - connect(dialog, &QMessageBox::buttonClicked, this, [=](QAbstractButton* button) + connect(dialog, &QMessageBox::buttonClicked, this, [=, this](QAbstractButton* button) { if (button == dialog->button(QMessageBox::Yes)) loadImagesWithAddr({image->headerAddress}); |
