diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-06-30 22:43:08 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-07-04 11:22:54 +0000 |
commit | 8568b4d1ca490691c01fb9a14ca773648a553bd0 (patch) | |
tree | 8f5243b0b190853d64e905130f97bf8379cd588a | |
parent | 7b71ac3821c64abecb24911aa8c8884d2d63a160 (diff) | |
download | qt-creator-8568b4d1ca490691c01fb9a14ca773648a553bd0.tar.gz |
ClangStaticAnalyzer: Simplify signal connection
Change-Id: Ia710c47a11ca08b9e12d81555ff6288583e6ad63
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
-rw-r--r-- | src/plugins/clangstaticanalyzer/clangstaticanalyzerdiagnosticview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/clangstaticanalyzer/clangstaticanalyzerdiagnosticview.cpp b/src/plugins/clangstaticanalyzer/clangstaticanalyzerdiagnosticview.cpp index e0d1b32cff..097022df04 100644 --- a/src/plugins/clangstaticanalyzer/clangstaticanalyzerdiagnosticview.cpp +++ b/src/plugins/clangstaticanalyzer/clangstaticanalyzerdiagnosticview.cpp @@ -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() |