Skip to content

Commit

Permalink
Remove unused lambda captures
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Nov 17, 2023
1 parent 98dd806 commit 41d2e69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qrenderdoc/Windows/BufferViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3008,8 +3008,7 @@ void BufferViewer::fixedVars_contextMenu(const QPoint &pos)
contextMenu.addAction(m_ExportCSV);
contextMenu.addAction(m_ExportBytes);

QObject::connect(&removeFilter, &QAction::triggered,
[this, idx]() { SetMeshFilter(MeshFilter::None); });
QObject::connect(&removeFilter, &QAction::triggered, [this]() { SetMeshFilter(MeshFilter::None); });
QObject::connect(&filterTask, &QAction::triggered, [this, idx]() {
// if there's no filter, select this task. If we were mesh filtering, filter back to all meshes
// under the current task (don't use idx there, since it will just be 0)
Expand Down Expand Up @@ -3419,7 +3418,7 @@ void BufferViewer::OnEventChanged(uint32_t eventId)

QPointer<BufferViewer> me(this);

m_Ctx.Replay().AsyncInvoke([this, me, action, bufdata](IReplayController *r) {
m_Ctx.Replay().AsyncInvoke([this, me, bufdata](IReplayController *r) {
if(!me)
return;

Expand Down

0 comments on commit 41d2e69

Please sign in to comment.