From 5c7b6e7af44e04dadcaeb3cf9ef5626f9fa725b1 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 3 Aug 2022 16:55:04 +0200 Subject: [PATCH] fix warnings reported by Qt Signed-off-by: Matthieu Gallien --- src/libsync/propagateremotedeleteencryptedrootfolder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/propagateremotedeleteencryptedrootfolder.cpp b/src/libsync/propagateremotedeleteencryptedrootfolder.cpp index 6dfe3c1d3024f..add0c00dad768 100644 --- a/src/libsync/propagateremotedeleteencryptedrootfolder.cpp +++ b/src/libsync/propagateremotedeleteencryptedrootfolder.cpp @@ -153,7 +153,7 @@ void PropagateRemoteDeleteEncryptedRootFolder::slotDeleteNestedRemoteItemFinishe if (_nestedItems.size() == 0) { // we wait for all _nestedItems' DeleteJobs to finish, and then - fail if any of those jobs has failed if (networkError() != QNetworkReply::NetworkError::NoError || _item->_httpErrorCode != 0) { - const int errorCode = networkError() != QNetworkReply::NetworkError::NoError ? networkError() : _item->_httpErrorCode; + const auto errorCode = (networkError() != QNetworkReply::NetworkError::NoError ? static_cast(networkError()) : _item->_httpErrorCode); qCCritical(PROPAGATE_REMOVE_ENCRYPTED_ROOTFOLDER) << "Delete of nested items finished with error" << errorCode << ". Failing the entire sequence."; taskFailed(); return;