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:
parent
223dcfec6d
commit
68ee5422a0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue