Skip to content

Fix warnings: implicit capture of ‘this’ via ‘[=]’

Méven Car requested to merge work/meven/implicit-capture-fix into master

Warnings such as:

/home/meven/kde/src/kio/src/widgets/kpropertiesdialogbuiltin_p.cpp:2079:68: note: add explicit ‘this’ or ‘*this’ capture
/home/meven/kde/src/kio/src/widgets/kpropertiesdialogbuiltin_p.cpp: In lambda function:
/home/meven/kde/src/kio/src/widgets/kpropertiesdialogbuiltin_p.cpp:2083:63: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated]
 2083 |     connect(d->m_ui.pasteButton, &QPushButton::clicked, this, [=]() {

NO_CHANGELOG

Edited by Méven Car

Merge request reports

Loading