diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2019-09-11 08:22:53 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2019-09-11 15:20:34 +0000 |
commit | 2aca0c1b28fc0160fb1ed54c90bc5ffc96bd6c1b (patch) | |
tree | dd555773a722fa076fc3d092d730d62a6c058159 /src/plugins/clangformat | |
parent | 75a0340a5338a2f31af96b49ef1a85a475494ac0 (diff) |
Fix MSVC warnings
* Missing `this` captures
* Implicit size_t -> int conversion
* Unused argument
* Suppress warnings in clang headers
Change-Id: I7083ce6ab22ee22ecc1258539e77c790acc78df1
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/clangformat')
-rw-r--r-- | src/plugins/clangformat/clangformatconfigwidget.cpp | 5 | ||||
-rw-r--r-- | src/plugins/clangformat/clangformatplugin.cpp | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/clangformat/clangformatconfigwidget.cpp b/src/plugins/clangformat/clangformatconfigwidget.cpp index f419780a3e..311a524315 100644 --- a/src/plugins/clangformat/clangformatconfigwidget.cpp +++ b/src/plugins/clangformat/clangformatconfigwidget.cpp @@ -137,9 +137,8 @@ ClangFormatConfigWidget::ClangFormatConfigWidget(ProjectExplorer::Project *proje tr("Override Clang Format configuration file with the fallback configuration.")); } - connect(m_ui->overrideDefault, &QCheckBox::toggled, this, [this](bool checked) { - showOrHideWidgets(); - }); + connect(m_ui->overrideDefault, &QCheckBox::toggled, + this, &ClangFormatConfigWidget::showOrHideWidgets); showOrHideWidgets(); fillTable(); diff --git a/src/plugins/clangformat/clangformatplugin.cpp b/src/plugins/clangformat/clangformatplugin.cpp index 49f4fe049f..81f95ccba7 100644 --- a/src/plugins/clangformat/clangformatplugin.cpp +++ b/src/plugins/clangformat/clangformatplugin.cpp @@ -79,6 +79,7 @@ public: TextEditor::CodeStyleEditorWidget *createCodeStyleEditor( TextEditor::ICodeStylePreferences *preferences, QWidget *parent = nullptr) override { + Q_UNUSED(preferences); if (!parent) return new ClangFormatConfigWidget; return new ClangFormatConfigWidget(SessionManager::startupProject()); |