ClangStaticAnalyzer: Simplify signal connection

Change-Id: Ia710c47a11ca08b9e12d81555ff6288583e6ad63
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-06-30 22:43:08 +03:00
committed by Orgad Shaneh
parent 7b71ac3821
commit 8568b4d1ca

View File

@@ -45,7 +45,8 @@ ClangStaticAnalyzerDiagnosticView::ClangStaticAnalyzerDiagnosticView(QWidget *pa
: Debugger::DetailedErrorView(parent) : Debugger::DetailedErrorView(parent)
{ {
m_suppressAction = new QAction(tr("Suppress This Diagnostic"), this); m_suppressAction = new QAction(tr("Suppress This Diagnostic"), this);
connect(m_suppressAction, &QAction::triggered, [this](bool) { suppressCurrentDiagnostic(); }); connect(m_suppressAction, &QAction::triggered,
this, &ClangStaticAnalyzerDiagnosticView::suppressCurrentDiagnostic);
} }
void ClangStaticAnalyzerDiagnosticView::suppressCurrentDiagnostic() void ClangStaticAnalyzerDiagnosticView::suppressCurrentDiagnostic()