From 2b7d9eeb037b2d8b64bc3bcd52bc6d170ca6b5f3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 26 Oct 2019 19:05:49 -0500 Subject: [PATCH] fixup! fix "unused in lambda capture" warnings by clang++ --- qt/Session.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/Session.cc b/qt/Session.cc index 39fdbbdc9..71549a973 100644 --- a/qt/Session.cc +++ b/qt/Session.cc @@ -547,7 +547,7 @@ void Session::torrentRenamePath(QSet const& ids, QString const& oldpath, QS tr("

Unable to rename \"%1\" as \"%2\": %3.

Please correct the errors and try again.

"). arg(QString::fromUtf8(path)).arg(QString::fromUtf8(name)).arg(r.result), QMessageBox::Close, qApp->activeWindow()); - QObject::connect(d, SIGNAL(rejected()), d, SLOT(deleteLater())); + QObject::connect(d, &QMessageBox::rejected, d, &QMessageBox::deleteLater); d->show(); }); @@ -996,7 +996,7 @@ void Session::addTorrent(AddData const& addMe, tr_variant* args, bool trashOrigi QMessageBox* d = new QMessageBox(QMessageBox::Warning, tr("Error Adding Torrent"), QString::fromLatin1("

%1

%2

").arg(r.result).arg(addMe.readableName()), QMessageBox::Close, qApp->activeWindow()); - QObject::connect(d, SIGNAL(rejected()), d, SLOT(deleteLater())); + QObject::connect(d, &QMessageBox::rejected, d, &QMessageBox::deleteLater); d->show(); }); @@ -1017,7 +1017,7 @@ void Session::addTorrent(AddData const& addMe, tr_variant* args, bool trashOrigi QMessageBox* d = new QMessageBox(QMessageBox::Warning, tr("Add Torrent"), tr("

Unable to add \"%1\".

It is a duplicate of \"%2\" which is already added.

"). arg(addMe.readableShortName()).arg(name), QMessageBox::Close, qApp->activeWindow()); - QObject::connect(d, SIGNAL(rejected()), d, SLOT(deleteLater())); + QObject::connect(d, &QMessageBox::rejected, d, &QMessageBox::deleteLater); d->show(); } }); -- 2.40.0