diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-02-05 20:50:49 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-02-06 08:34:44 +0000 |
commit | 8bcc78a04429f2736971054f15a4e3d4a8903183 (patch) | |
tree | 3f9e846d6a4c189ab1afde6f55700bc69cc3507b /src/plugins/cppeditor/cppquickfixes.cpp | |
parent | 97e582c3c0edbf9e646b9df667823bead5dd5e46 (diff) |
Various plugins: Fix some more C++20 warnings about [=] captures
Change-Id: If20aac4320c84096a07d67cc137886638286acf8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixes.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppquickfixes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index b4a844b396..5c40ad9ce8 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -4783,8 +4783,9 @@ public: checkbox->setCheckState(Qt::Checked); }; using Column = CandidateTreeItem::Column; - const auto createConnections = [=](QCheckBox *checkbox, Column column) { - connect(checkbox, &QCheckBox::stateChanged, [setCheckStateForAll, column](int state) { + const auto createConnections = [this, setCheckStateForAll, preventPartiallyChecked]( + QCheckBox *checkbox, Column column) { + connect(checkbox, &QCheckBox::stateChanged, this, [setCheckStateForAll, column](int state) { if (state != Qt::PartiallyChecked) setCheckStateForAll(column, state); }); |