mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 06:36:08 +00:00
Remove unused this in lambdas of ShaderViewer
This commit is contained in:
committed by
Baldur Karlsson
parent
6e8218d0e0
commit
9c9e61a95e
@@ -955,8 +955,8 @@ void ShaderViewer::debug_contextMenu(const QPoint &pos)
|
||||
copyText.setEnabled(!edit->selectionEmpty());
|
||||
|
||||
QObject::connect(©Text, &QAction::triggered,
|
||||
[this, edit] { edit->copyRange(edit->selectionStart(), edit->selectionEnd()); });
|
||||
QObject::connect(&selectAll, &QAction::triggered, [this, edit] { edit->selectAll(); });
|
||||
[edit] { edit->copyRange(edit->selectionStart(), edit->selectionEnd()); });
|
||||
QObject::connect(&selectAll, &QAction::triggered, [edit] { edit->selectAll(); });
|
||||
|
||||
contextMenu.addAction(©Text);
|
||||
contextMenu.addAction(&selectAll);
|
||||
@@ -1031,7 +1031,7 @@ void ShaderViewer::variables_contextMenu(const QPoint &pos)
|
||||
{
|
||||
RDTreeWidget *tree = qobject_cast<RDTreeWidget *>(w);
|
||||
|
||||
QObject::connect(©Value, &QAction::triggered, [this, tree] { tree->copySelection(); });
|
||||
QObject::connect(©Value, &QAction::triggered, [tree] { tree->copySelection(); });
|
||||
|
||||
addWatch.setEnabled(tree->selectedItem() != NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user