fix review comments
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 28 Sep 2022 09:41:23 +0000 (11:41 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 12 Oct 2022 10:13:45 +0000 (12:13 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/updater/ocupdater.cpp

index 7454f62a17bf535b4e5e5a11610e6caa1b65b054..b44a0d18a55a643029198bf27b1a2b9555d02719 100644 (file)
@@ -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<QNetworkReply *>(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 {