]> granicus.if.org Git - transmission/commitdiff
fixup! fix "unused in lambda capture" warnings by clang++ fix-gcc-warnings
authorCharles Kerr <ckerr@github.com>
Sun, 27 Oct 2019 00:05:49 +0000 (19:05 -0500)
committerCharles Kerr <ckerr@github.com>
Sun, 27 Oct 2019 00:05:49 +0000 (19:05 -0500)
qt/Session.cc

index 39fdbbdc908ad809d782ede93e60f1a2541dda10..71549a973027e9f7d6c268fbbe5143fb62c1a4fc 100644 (file)
@@ -547,7 +547,7 @@ void Session::torrentRenamePath(QSet<int> const& ids, QString const& oldpath, QS
                 tr("<p><b>Unable to rename \"%1\" as \"%2\": %3.</b></p><p>Please correct the errors and try again.</p>").
                     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("<p><b>%1</b></p><p>%2</p>").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("<p><b>Unable to add \"%1\".</b></p><p>It is a duplicate of \"%2\" which is already added.</p>").
                         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();
             }
         });