ClangTools: Pass context object to lambda connections

Remove some unneeded lambda () brackets.

Change-Id: I502eb5cd89505fb77c02abf44b7ce19541a8ac2f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Jarek Kobus
2022-12-07 20:25:25 +01:00
parent b354421f27
commit f9800bb790
11 changed files with 25 additions and 29 deletions

View File

@@ -101,7 +101,7 @@ void RunSettingsWidget::fromSettings(const RunSettings &s)
disconnect(m_buildBeforeAnalysis, 0, 0, 0);
m_buildBeforeAnalysis->setToolTip(hintAboutBuildBeforeAnalysis());
m_buildBeforeAnalysis->setCheckState(s.buildBeforeAnalysis() ? Qt::Checked : Qt::Unchecked);
connect(m_buildBeforeAnalysis, &QCheckBox::toggled, [this](bool checked) {
connect(m_buildBeforeAnalysis, &QCheckBox::toggled, this, [this](bool checked) {
if (!checked)
showHintAboutBuildBeforeAnalysis();
emit changed();