From 8059c3797defd14d21782c1d8dd26d7582138644 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 6 Sep 2024 05:31:18 -0400 Subject: [PATCH] Remove unused lambda capture variables This removes two compile time warnings. --- src/neochatroom.cpp | 2 +- src/roommanager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 89aedbfa1..756e40e66 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -149,7 +149,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS if (NeoChatConfig::rejectUnknownInvites()) { auto job = this->connection()->callApi(roomMemberEvent->senderId()); - connect(job, &BaseJob::result, this, [this, job, roomMemberEvent, showNotification] { + connect(job, &BaseJob::result, this, [this, job, showNotification] { QJsonObject replyData = job->jsonData(); if (replyData.contains(QStringLiteral("joined"))) { const bool inAnyOfOurRooms = !replyData[QStringLiteral("joined")].toArray().isEmpty(); diff --git a/src/roommanager.cpp b/src/roommanager.cpp index a847c92e0..c82758260 100644 --- a/src/roommanager.cpp +++ b/src/roommanager.cpp @@ -375,7 +375,7 @@ void RoomManager::knockRoom(NeoChatConnection *account, const QString &roomAlias account, &NeoChatConnection::newRoom, this, - [this](Quotient::Room *room) { + [](Quotient::Room *room) { Q_EMIT Controller::instance().showMessage(Controller::Info, i18n("You requested to join '%1'", room -> name())); }, Qt::SingleShotConnection);