aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-05 03:44:43 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-05 03:44:43 +0200
commit107471447a62663eaf97b4b982d8c3f3e1b3364e (patch)
treeecc9895242ba243dec78be187452b27d53eac730 /lib
parent9cfd6ad6a4651280a12099d1a92432f07fc5aae0 (diff)
downloadlibquotient-107471447a62663eaf97b4b982d8c3f3e1b3364e.tar.gz
libquotient-107471447a62663eaf97b4b982d8c3f3e1b3364e.zip
Connection: fix C++20 warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 093362ab..1fe0d2d0 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -341,7 +341,7 @@ void Connection::loginWithPassword(const QString& userId,
const QString& initialDeviceName,
const QString& deviceId)
{
- d->checkAndConnect(userId, [=] {
+ d->checkAndConnect(userId, [=,this] {
d->loginToServer(LoginFlows::Password.type, makeUserIdentifier(userId),
password, /*token*/ "", deviceId, initialDeviceName);
}, LoginFlows::Password);
@@ -1716,7 +1716,7 @@ void Connection::getTurnServers()
{
auto job = callApi<GetTurnServerJob>();
connect(job, &GetTurnServerJob::success, this,
- [=] { emit turnServersChanged(job->data()); });
+ [this,job] { emit turnServersChanged(job->data()); });
}
const QString Connection::SupportedRoomVersion::StableTag =