forked from qt-creator/qt-creator
Drop unused variables and lambda captures
Also, add context to connect() expressions where we are or were capturing "this". Change-Id: I6e006ba6f83d532478018550d148ee93eca59605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -116,7 +116,7 @@ void AutotestPlugin::initializeMenuEntries()
|
||||
action = new QAction(tr("Re&scan Tests"), this);
|
||||
command = ActionManager::registerAction(action, Constants::ACTION_SCAN_ID);
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+Shift+T,Alt+S")));
|
||||
connect(action, &QAction::triggered, [this] () {
|
||||
connect(action, &QAction::triggered, this, [] () {
|
||||
TestTreeModel::instance()->parser()->updateTestTree();
|
||||
});
|
||||
menu->addAction(command);
|
||||
|
||||
Reference in New Issue
Block a user