use auto
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 24 Jan 2023 21:35:52 +0000 (22:35 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 25 Jan 2023 15:37:37 +0000 (16:37 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/propagatedownload.cpp

index 9f7beb0a68262b86f0b04b5200455a6e88ca17c7..ead85459f979911057ba565fdc124e289cf73e86 100644 (file)
@@ -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};