]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Don't need a second if for non-Windows, using Qt macro for platform check
authorDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Tue, 8 Oct 2019 06:44:08 +0000 (08:44 +0200)
committerDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Tue, 8 Oct 2019 06:44:08 +0000 (08:44 +0200)
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
src/csync/csync_exclude.cpp

index fe4f714931a937530155f9cdb50df6de71f2924f..5da86dff86d5e775f538cf27171ba564a20baec9 100644 (file)
@@ -288,9 +288,9 @@ void ExcludedFiles::addManualExclude(const QByteArray &expr)
 
 void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
 {
-#if defined(_WIN32)
+#if defined(Q_OS_WIN)
     Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == ':');
-#elif
+#else
     Q_ASSERT(basePath.startsWith('/'));
 #endif
     Q_ASSERT(basePath.endsWith('/'));