Skip to content

Commit

Permalink
Fix lambda capture deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 13, 2024
1 parent b667bca commit f57dd87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xmpp/xmpp-im/xmpp_carbons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void CarbonsManager::setEnabled(bool enable)
JT_MessageCarbons *jt = new JT_MessageCarbons(d->push_m->client()->rootTask());
connect(
jt, &JT_MessageCarbons::finished, this,
[=]() {
[this, jt]() {
if (jt->success())
d->enable = true;
else
Expand All @@ -202,7 +202,7 @@ void CarbonsManager::setEnabled(bool enable)
JT_MessageCarbons *jt = new JT_MessageCarbons(d->push_m->client()->rootTask());
connect(
jt, &JT_MessageCarbons::finished, this,
[=]() {
[this]() {
d->enable = false;
d->unsubscribe();
emit finished();
Expand Down

0 comments on commit f57dd87

Please sign in to comment.