forked from qt-creator/qt-creator
All: Use Utils::SkipEmptyParts
Task-number: QTCREATORBUG-24098 Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "qtcassert.h"
|
||||
#include "stringutils.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
@@ -303,7 +304,7 @@ FilePaths Environment::path() const
|
||||
FilePaths Environment::pathListValue(const QString &varName) const
|
||||
{
|
||||
const QStringList pathComponents = expandedValueForKey(varName)
|
||||
.split(OsSpecificAspects::pathListSeparator(m_osType), QString::SkipEmptyParts);
|
||||
.split(OsSpecificAspects::pathListSeparator(m_osType), Utils::SkipEmptyParts);
|
||||
return transform(pathComponents, &FilePath::fromUserInput);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user