]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix Windows Build
authorMéven Car <meven29@gmail.com>
Tue, 5 May 2020 05:31:19 +0000 (07:31 +0200)
committerMéven Car <meven29@gmail.com>
Tue, 5 May 2020 05:31:22 +0000 (07:31 +0200)
Summary: Due to D25335

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29425

src/kitemviews/private/kdirectorycontentscounterworker.cpp

index 3117d07aa4ea4e6175002bbeec4a812f61661ab5..1e4a0b3b47eb5d483be8139203b9e77a597d3964 100644 (file)
@@ -36,6 +36,7 @@ KDirectoryContentsCounterWorker::KDirectoryContentsCounterWorker(QObject* parent
     qRegisterMetaType<KDirectoryContentsCounterWorker::Options>();
 }
 
+#ifndef Q_OS_WIN
 KDirectoryContentsCounterWorker::CountResult walkDir(const QString &dirPath,
                                                      const bool countHiddenFiles,
                                                      const bool countDirectoriesOnly,
@@ -96,6 +97,7 @@ KDirectoryContentsCounterWorker::CountResult walkDir(const QString &dirPath,
     }
     return KDirectoryContentsCounterWorker::CountResult{count, size};
 }
+#endif
 
 KDirectoryContentsCounterWorker::CountResult KDirectoryContentsCounterWorker::subItemsCount(const QString& path, Options options)
 {