Fixing implicit capture of 'this' via '[=]' is deprecated in C++20 --

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0806r2.html
This commit is contained in:
Rob Emery 2024-10-09 21:31:42 +01:00
parent 223dcfec6d
commit 68ee5422a0

View file

@ -56,7 +56,7 @@ void MMTelephonyPlugin::onCallAdded(ModemManager::Call::Ptr call)
{ {
qCDebug(KDECONNECT_PLUGIN_MMTELEPHONY) << "Call added" << call->number(); qCDebug(KDECONNECT_PLUGIN_MMTELEPHONY) << "Call added" << call->number();
connect(call.get(), &ModemManager::Call::stateChanged, this, [=](MMCallState newState, MMCallState oldState) { connect(call.get(), &ModemManager::Call::stateChanged, this, [=, this](MMCallState newState, MMCallState oldState) {
onCallStateChanged(call.get(), newState, oldState); onCallStateChanged(call.get(), newState, oldState);
}); });
} }