From f50ac3549d6a7f1199fa012e4b03f581bc8d305b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jun 2018 12:54:47 +0200 Subject: core, modules: modernize syntax only Use more C++17 features where this helps any. --- tracker-s2bot/ftnoir_tracker_s2bot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tracker-s2bot') diff --git a/tracker-s2bot/ftnoir_tracker_s2bot.cpp b/tracker-s2bot/ftnoir_tracker_s2bot.cpp index 44ae6132..8748e0f3 100644 --- a/tracker-s2bot/ftnoir_tracker_s2bot.cpp +++ b/tracker-s2bot/ftnoir_tracker_s2bot.cpp @@ -31,9 +31,9 @@ void tracker_s2bot::run() { if (s.freq == 0) s.freq = 10; timer.setInterval(1000.0/s.freq); timer.setSingleShot(false); - connect(&timer, &QTimer::timeout, [this]() { + connect(&timer, &QTimer::timeout, [this] { auto reply = m_nam->get(QNetworkRequest(QUrl("http://localhost:17317/poll"))); - connect(reply, &QNetworkReply::finished, [this, reply]() { + connect(reply, &QNetworkReply::finished, [this, reply] { if (reply->error() == QNetworkReply::NoError) { //qDebug() << "Request submitted OK"; } -- cgit v1.2.3