From 3baf11b5c488331b07a504b2e9f514b54b828a7e Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 8 Jun 2020 22:35:47 +0200 Subject: [PATCH] Fix unused capture --- src/UserInfoWidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UserInfoWidget.cpp b/src/UserInfoWidget.cpp index e8e403bc..dcaf0d09 100644 --- a/src/UserInfoWidget.cpp +++ b/src/UserInfoWidget.cpp @@ -125,24 +125,24 @@ UserInfoWidget::UserInfoWidget(QWidget *parent) ChatPage::instance()->setStatus(text); }); auto setAutoPresence = menu->addAction(tr("Set presence automatically")); - connect(setAutoPresence, &QAction::triggered, this, [this]() { + connect(setAutoPresence, &QAction::triggered, this, []() { ChatPage::instance()->userSettings()->setPresence( UserSettings::Presence::AutomaticPresence); ChatPage::instance()->setStatus(ChatPage::instance()->status()); }); auto setOnline = menu->addAction(tr("Online")); - connect(setOnline, &QAction::triggered, this, [this]() { + connect(setOnline, &QAction::triggered, this, []() { ChatPage::instance()->userSettings()->setPresence(UserSettings::Presence::Online); ChatPage::instance()->setStatus(ChatPage::instance()->status()); }); auto setUnavailable = menu->addAction(tr("Unavailable")); - connect(setUnavailable, &QAction::triggered, this, [this]() { + connect(setUnavailable, &QAction::triggered, this, []() { ChatPage::instance()->userSettings()->setPresence( UserSettings::Presence::Unavailable); ChatPage::instance()->setStatus(ChatPage::instance()->status()); }); auto setOffline = menu->addAction(tr("Offline")); - connect(setOffline, &QAction::triggered, this, [this]() { + connect(setOffline, &QAction::triggered, this, []() { ChatPage::instance()->userSettings()->setPresence(UserSettings::Presence::Offline); ChatPage::instance()->setStatus(ChatPage::instance()->status()); });