aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-24 23:17:23 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-24 23:17:23 +0900
commitb4e699a0076fc7827fa89af33d8774d43eb017ce (patch)
tree7ac7bd1867d561af027f3f5059934435af704344
parent68d7a22c25014f09c0346cf1a2501b4fd1fd882a (diff)
downloadlibquotient-b4e699a0076fc7827fa89af33d8774d43eb017ce.tar.gz
libquotient-b4e699a0076fc7827fa89af33d8774d43eb017ce.zip
Fix dangling references
-rw-r--r--connection.cpp4
1 files 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,