diff options
author | hjk <hjk@qt.io> | 2020-06-17 06:35:31 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-06-17 05:55:25 +0000 |
commit | 1c81a3b3e887d9774cc342caafccebd7cdb90f19 (patch) | |
tree | 7008ebd0f4d8de1299dfc5d734832175d7a4624f /src/libs/utils/environment.cpp | |
parent | 6e798401a0558ad039fff62b80e97660053b60b8 (diff) |
All: Use Utils::SkipEmptyParts
Task-number: QTCREATORBUG-24098
Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/utils/environment.cpp')
-rw-r--r-- | src/libs/utils/environment.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/environment.cpp b/src/libs/utils/environment.cpp index af54f289ca..b146e235e8 100644 --- a/src/libs/utils/environment.cpp +++ b/src/libs/utils/environment.cpp @@ -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); } |