Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Dec 13, 2023
1 parent d73d36c commit bcc5c7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/accountsservice/accountsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void AccountsManager::cacheUser(const QString &userName)

QDBusPendingCall call = d->interface->CacheUser(userName);
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *w) {
connect(watcher, &QDBusPendingCallWatcher::finished, this, [&](QDBusPendingCallWatcher *w) {
QDBusPendingReply<QDBusObjectPath> reply = *w;
w->deleteLater();
if (reply.isError()) {
Expand Down Expand Up @@ -162,7 +162,7 @@ void AccountsManager::uncacheUser(const QString &userName)

QDBusPendingCall call = d->interface->UncacheUser(userName);
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *w) {
connect(watcher, &QDBusPendingCallWatcher::finished, this, [&](QDBusPendingCallWatcher *w) {
QDBusPendingReply<QDBusObjectPath> reply = *w;
w->deleteLater();
if (reply.isError()) {
Expand Down Expand Up @@ -195,7 +195,7 @@ void AccountsManager::listCachedUsers()

QDBusPendingCall call = d->interface->ListCachedUsers();
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
connect(watcher, &QDBusPendingCallWatcher::finished, this, [=](QDBusPendingCallWatcher *w) {
connect(watcher, &QDBusPendingCallWatcher::finished, this, [&](QDBusPendingCallWatcher *w) {
QDBusPendingReply<QList<QDBusObjectPath>> reply = *w;
w->deleteLater();
if (reply.isError()) {
Expand Down

0 comments on commit bcc5c7c

Please sign in to comment.