diff options
Diffstat (limited to 'src/libs/utils/fileinprojectfinder.cpp')
-rw-r--r-- | src/libs/utils/fileinprojectfinder.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/utils/fileinprojectfinder.cpp b/src/libs/utils/fileinprojectfinder.cpp index 3d8777f7d3..175e4e3a6c 100644 --- a/src/libs/utils/fileinprojectfinder.cpp +++ b/src/libs/utils/fileinprojectfinder.cpp @@ -30,6 +30,7 @@ #include "hostosinfo.h" #include "qrcparser.h" #include "qtcassert.h" +#include "stringutils.h" #include <QCursor> #include <QDebug> @@ -121,7 +122,7 @@ void FileInProjectFinder::setSysroot(const FilePath &sysroot) void FileInProjectFinder::addMappedPath(const FilePath &localFilePath, const QString &remoteFilePath) { - const QStringList segments = remoteFilePath.split('/', QString::SkipEmptyParts); + const QStringList segments = remoteFilePath.split('/', Utils::SkipEmptyParts); PathMappingNode *node = &m_pathMapRoot; for (const QString &segment : segments) { @@ -191,7 +192,7 @@ bool FileInProjectFinder::findFileOrDirectory(const QString &originalPath, FileH return false; } - const auto segments = originalPath.splitRef('/', QString::SkipEmptyParts); + const auto segments = originalPath.splitRef('/', Utils::SkipEmptyParts); const PathMappingNode *node = &m_pathMapRoot; for (const auto &segment : segments) { auto it = node->children.find(segment.toString()); @@ -386,7 +387,7 @@ FileInProjectFinder::CacheEntry FileInProjectFinder::findInSearchPath( QStringList FileInProjectFinder::filesWithSameFileName(const QString &fileName) const { QStringList result; - foreach (const FilePath &f, m_projectFiles) { + for (const FilePath &f : m_projectFiles) { if (f.fileName() == fileName) result << f.toString(); } |