1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-05-11 20:34:09 +02:00

Don't need a second if for non-Windows, using Qt macro for platform check

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
(cherry picked from commit 7750d2198d)
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Dominique Fuchs 2019-10-08 08:44:08 +02:00 committed by Michael Schuster
parent ed7c489722
commit 0e6a9fd0c1
No known key found for this signature in database
GPG Key ID: 00819E3BF4177B28

View 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('/'));