From 68ee5422a004eced9fa2eb4032868a7830d8565b Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Wed, 9 Oct 2024 21:31:42 +0100 Subject: [PATCH] Fixing implicit capture of 'this' via '[=]' is deprecated in C++20 -- https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0806r2.html --- plugins/mmtelephony/mmtelephonyplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mmtelephony/mmtelephonyplugin.cpp b/plugins/mmtelephony/mmtelephonyplugin.cpp index df7e3ae52..319216b12 100644 --- a/plugins/mmtelephony/mmtelephonyplugin.cpp +++ b/plugins/mmtelephony/mmtelephonyplugin.cpp @@ -56,7 +56,7 @@ void MMTelephonyPlugin::onCallAdded(ModemManager::Call::Ptr call) { 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); }); }