From 290de548bbaf4337a5610457d298995897a53f0d Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 10 Mar 2018 23:31:01 +0200 Subject: [PATCH] Remove unused variables --- src/MatrixClient.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 1e7a5339..f4d2e66a 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -745,7 +745,7 @@ MatrixClient::downloadImage(const QUrl &url) auto reply = get(image_request); auto proxy = new DownloadMediaProxy; - connect(reply, &QNetworkReply::finished, this, [this, reply, proxy]() { + connect(reply, &QNetworkReply::finished, this, [reply, proxy]() { reply->deleteLater(); int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); @@ -776,7 +776,7 @@ MatrixClient::downloadFile(const QUrl &url) auto reply = get(fileRequest); auto proxy = new DownloadMediaProxy; - connect(reply, &QNetworkReply::finished, this, [this, reply, proxy]() { + connect(reply, &QNetworkReply::finished, this, [reply, proxy]() { reply->deleteLater(); int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();