aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixes.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2024-02-05 20:50:49 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2024-02-06 08:34:44 +0000
commit8bcc78a04429f2736971054f15a4e3d4a8903183 (patch)
tree3f9e846d6a4c189ab1afde6f55700bc69cc3507b /src/plugins/cppeditor/cppquickfixes.cpp
parent97e582c3c0edbf9e646b9df667823bead5dd5e46 (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.cpp5
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);
});