From b4e699a0076fc7827fa89af33d8774d43eb017ce Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 24 Jan 2018 23:17:23 +0900 Subject: Fix dangling references --- connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.cpp b/connection.cpp index 1257f251..f498f613 100644 --- a/connection.cpp +++ b/connection.cpp @@ -150,7 +150,7 @@ void Connection::connectToServer(const QString& user, const QString& password, const QString& deviceId) { checkAndConnect(user, - [&] { + [=] { doConnectToServer(user, password, initialDeviceName, deviceId); }); } @@ -177,7 +177,7 @@ void Connection::connectWithToken(const QString& userId, const QString& deviceId) { checkAndConnect(userId, - [&] { d->connectWithToken(userId, accessToken, deviceId); }); + [=] { d->connectWithToken(userId, accessToken, deviceId); }); } void Connection::Private::connectWithToken(const QString& user, -- cgit v1.2.3