Don't shadow
authorHannah von Reth <hannah.vonreth@owncloud.com>
Tue, 5 Jan 2021 09:58:28 +0000 (10:58 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Wed, 11 Aug 2021 17:13:44 +0000 (17:13 +0000)
src/libsync/owncloudpropagator.cpp

index 7d8250d0ab8262d8cd5d754fcc34b9b3b5dbfb8e..74102f26480159edc5dea0bdeebca2fdc6e89ef3 100644 (file)
@@ -531,6 +531,7 @@ bool OwncloudPropagator::localFileNameClash(const QString &relFile)
     const QString file(_localDir + relFile);
 
     if (!file.isEmpty() && Utility::fsCasePreserving()) {
+        qCDebug(lcPropagator) << "CaseClashCheck for " << file;
 #ifdef Q_OS_MAC
         QFileInfo fileInfo(file);
         if (!fileInfo.exists()) {
@@ -543,8 +544,6 @@ bool OwncloudPropagator::localFileNameClash(const QString &relFile)
             re = (!equal && !cName.endsWith(relFile, Qt::CaseSensitive));
         }
 #elif defined(Q_OS_WIN)
-        const QString file(_localDir + relFile);
-        qCDebug(lcPropagator) << "CaseClashCheck for " << file;
         WIN32_FIND_DATA FindFileData;
         HANDLE hFind;