diff options
author | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2022-09-28 12:41:23 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu_gallien@yahoo.fr> | 2022-10-12 13:13:45 +0300 |
commit | a36672c1a4c13d50017c2c5629d3a4e5e55131b9 (patch) | |
tree | 2c8abbb86b28b8a1cff05bda15013c413a6bbc86 | |
parent | 146bd44b09d98be5df7bcb5a878ea55a94bf3b65 (diff) |
fix review comments
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
-rw-r--r-- | src/gui/updater/ocupdater.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index 7454f62a1..b44a0d18a 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<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 { |