forked from qt-creator/qt-creator
Utils: Port some FilePath part accessors to QStringView
Change-Id: Ib5cc262e44c73880b6538eed714365e3d685870a Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1213,7 +1213,7 @@ static QList<Utils::FilePath> minimalPrefixPaths(const QList<Utils::FilePath> &p
|
||||
// find minimal prefix, ensure '/' at end
|
||||
for (Utils::FilePath path : qAsConst(paths)) {
|
||||
if (!path.endsWith("/"))
|
||||
path.setPath(path.path() + "/");
|
||||
path.setPath(QString(path.path() + "/"));
|
||||
if (path.path().length() > 1)
|
||||
sortedPaths.append(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user