From aca16d520e0d23ec5ebdc007ef9e77cd05823d05 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 28 Sep 2022 11:41:23 +0200 Subject: [PATCH] fix review comments Signed-off-by: Matthieu Gallien --- src/gui/updater/ocupdater.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index 7454f62a17bf5..b44a0d18a55a6 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -259,7 +259,7 @@ bool OCUpdater::updateSucceeded() const void OCUpdater::slotVersionInfoArrived() { - qCInfo(lcUpdater()) << "received a reply"; + qCDebug(lcUpdater) << "received a reply"; _timeoutWatchdog->stop(); auto *reply = qobject_cast(sender()); reply->deleteLater(); @@ -360,14 +360,14 @@ void NSISUpdater::versionInfoArrived(const UpdateInfo &info) qCInfo(lcUpdater) << "No version information available at the moment"; setDownloadState(UpToDate); } else { - qint64 currentVer = Helper::currentVersionToInt(); - qint64 remoteVer = Helper::stringVersionToInt(info.version()); + const auto currentVer = Helper::currentVersionToInt(); + const auto remoteVer = Helper::stringVersionToInt(info.version()); if (info.version().isEmpty() || currentVer >= remoteVer) { qCInfo(lcUpdater) << "Client is on latest version!"; setDownloadState(UpToDate); } else { - QString url = info.downloadUrl(); + const auto url = info.downloadUrl(); if (url.isEmpty()) { showNoUrlDialog(info); } else {