From 7cebb6ade4bd3407237d8e21bb76a50d1579caf9 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 24 Jan 2023 22:35:52 +0100 Subject: [PATCH] use auto Signed-off-by: Matthieu Gallien --- src/libsync/propagatedownload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 9f7beb0a68262..ead85459f9799 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -1181,7 +1181,7 @@ void PropagateDownloadFile::downloadFinished() qCInfo(lcPropagateDownload) << "setting instruction to" << _item->_instruction << _item->_file; } - bool previousFileExists = FileSystem::fileExists(filename) && _item->_instruction != CSYNC_INSTRUCTION_CASE_CLASH_CONFLICT; + auto previousFileExists = FileSystem::fileExists(filename) && _item->_instruction != CSYNC_INSTRUCTION_CASE_CLASH_CONFLICT; if (previousFileExists) { // Preserve the existing file permissions. const auto existingFile = QFileInfo{filename};