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 /examples/triage/exports.cpp | |
| parent | 0838242066437a04e3aa3417cab703cc071adde6 (diff) | |
Fix cxx20 compiler warnings.
Diffstat (limited to 'examples/triage/exports.cpp')
| -rw-r--r-- | examples/triage/exports.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/triage/exports.cpp b/examples/triage/exports.cpp index 067ebe92..4d274b1a 100644 --- a/examples/triage/exports.cpp +++ b/examples/triage/exports.cpp @@ -28,7 +28,7 @@ GenericExportsModel::GenericExportsModel(QWidget* parent, BinaryViewRef data): Q m_updateTimer->setSingleShot(true); m_updateTimer->setInterval(500); connect(m_updateTimer, &QTimer::timeout, this, &GenericExportsModel::updateModel); - connect(this, &GenericExportsModel::modelUpdate, this, [=]() { + connect(this, &GenericExportsModel::modelUpdate, this, [=, this]() { if (m_updateTimer->isActive()) return; m_updateTimer->start(); @@ -285,7 +285,7 @@ ExportsTreeView::ExportsTreeView(ExportsWidget* parent, TriageView* view, Binary // Allow view-specific shortcuts when imports are focused m_actionHandler.setupActionHandler(this); - m_actionHandler.setActionContext([=]() { return m_view->actionContext(); }); + m_actionHandler.setActionContext([=, this]() { return m_view->actionContext(); }); setFont(getMonospaceFont(this)); @@ -306,11 +306,11 @@ ExportsTreeView::ExportsTreeView(ExportsWidget* parent, TriageView* view, Binary connect(selectionModel(), &QItemSelectionModel::currentChanged, this, &ExportsTreeView::exportSelected); connect(this, &QTreeView::doubleClicked, this, &ExportsTreeView::exportDoubleClicked); - connect(m_model, &QAbstractItemModel::modelAboutToBeReset, this, [=]() { + connect(m_model, &QAbstractItemModel::modelAboutToBeReset, this, [=, this]() { m_selection = selectionModel()->selectedIndexes(); m_scroll = verticalScrollBar()->value(); }); - connect(m_model, &QAbstractItemModel::modelReset, this, [=]() { + connect(m_model, &QAbstractItemModel::modelReset, this, [=, this]() { for (auto& idx : m_selection) { setCurrentIndex(idx); |
