forked from qt-creator/qt-creator
ClangStaticAnalyzer: Simplify signal connection
Change-Id: Ia710c47a11ca08b9e12d81555ff6288583e6ad63 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7b71ac3821
commit
8568b4d1ca
@@ -45,7 +45,8 @@ ClangStaticAnalyzerDiagnosticView::ClangStaticAnalyzerDiagnosticView(QWidget *pa
|
||||
: Debugger::DetailedErrorView(parent)
|
||||
{
|
||||
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()
|
||||
|
Reference in New Issue
Block a user