Fixed typo preventing successful path rename on Win and modified ASSERT for Window path styles

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2019-10-08 08:31:31 +02:00
parent 9c199cc753
commit f993e7c555
2 changed files with 5 additions and 1 deletions

View file

@ -288,7 +288,11 @@ void ExcludedFiles::addManualExclude(const QByteArray &expr)
void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath) void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
{ {
#if defined(_WIN32)
Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == ':');
#elif
Q_ASSERT(basePath.startsWith('/')); Q_ASSERT(basePath.startsWith('/'));
#endif
Q_ASSERT(basePath.endsWith('/')); Q_ASSERT(basePath.endsWith('/'));
auto key = basePath; auto key = basePath;