forked from qt-creator/qt-creator
Utils: Fix doCleanPath()
QString::right() != QString::mid(), except for very special cases. Change-Id: I0b4d8e46b7631975dd1c3c38b50f4f336bff3f2e Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -137,7 +137,7 @@ static QString doCleanPath(const QString &input)
|
||||
const int pos = input.indexOf("://");
|
||||
if (pos == -1)
|
||||
return QDir::cleanPath(input);
|
||||
return input.left(pos + 3) + QDir::cleanPath(input.right(pos + 3));
|
||||
return input.left(pos + 3) + QDir::cleanPath(input.mid(pos + 3));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user