forked from qt-creator/qt-creator
Utils: Cleanup searchInX functions
Also move some often used types into new file "utiltypes.h" Change-Id: I3f152d1dc2f96ba0259ad6c098d9ac5ee03a59f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1451,7 +1451,7 @@ FilePath FilePath::withNewPath(const QString &newPath) const
|
||||
assert(fullPath == FilePath::fromUrl("docker://123/usr/bin/make"))
|
||||
\endcode
|
||||
*/
|
||||
FilePath FilePath::searchInDirectories(const FilePaths &dirs, const PathFilter &filter) const
|
||||
FilePath FilePath::searchInDirectories(const FilePaths &dirs, const FilePathPredicate &filter) const
|
||||
{
|
||||
if (isAbsolutePath())
|
||||
return *this;
|
||||
@@ -1460,7 +1460,7 @@ FilePath FilePath::searchInDirectories(const FilePaths &dirs, const PathFilter &
|
||||
|
||||
FilePath FilePath::searchInPath(const FilePaths &additionalDirs,
|
||||
PathAmending amending,
|
||||
const PathFilter &filter) const
|
||||
const FilePathPredicate &filter) const
|
||||
{
|
||||
if (isAbsolutePath())
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user