forked from qt-creator/qt-creator
FilePath: Remove const ref for enum argument
Change-Id: I86c5466cdcd8f74816456e70463157f28a4e37bc Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c1cdea2661
commit
861b98a76a
@@ -1501,7 +1501,7 @@ FilePath FilePath::withNewPath(const QString &newPath) const
|
|||||||
|
|
||||||
FilePath FilePath::searchInDirectories(const FilePaths &dirs,
|
FilePath FilePath::searchInDirectories(const FilePaths &dirs,
|
||||||
const FilePathPredicate &filter,
|
const FilePathPredicate &filter,
|
||||||
const MatchScope &matchScope) const
|
MatchScope matchScope) const
|
||||||
{
|
{
|
||||||
if (isEmpty())
|
if (isEmpty())
|
||||||
return {};
|
return {};
|
||||||
@@ -1540,7 +1540,7 @@ FilePath FilePath::searchInDirectories(const FilePaths &dirs,
|
|||||||
|
|
||||||
FilePaths FilePath::searchAllInDirectories(const FilePaths &dirs,
|
FilePaths FilePath::searchAllInDirectories(const FilePaths &dirs,
|
||||||
const FilePathPredicate &filter,
|
const FilePathPredicate &filter,
|
||||||
const MatchScope &matchScope) const
|
MatchScope matchScope) const
|
||||||
{
|
{
|
||||||
if (isEmpty())
|
if (isEmpty())
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
@@ -187,10 +187,10 @@ public:
|
|||||||
|
|
||||||
[[nodiscard]] FilePath searchInDirectories(const FilePaths &dirs,
|
[[nodiscard]] FilePath searchInDirectories(const FilePaths &dirs,
|
||||||
const FilePathPredicate &filter = {},
|
const FilePathPredicate &filter = {},
|
||||||
const MatchScope &matchScope = WithAnySuffix) const;
|
MatchScope matchScope = WithAnySuffix) const;
|
||||||
[[nodiscard]] FilePaths searchAllInDirectories(const FilePaths &dirs,
|
[[nodiscard]] FilePaths searchAllInDirectories(const FilePaths &dirs,
|
||||||
const FilePathPredicate &filter = {},
|
const FilePathPredicate &filter = {},
|
||||||
const MatchScope &matchScope = WithAnySuffix) const;
|
MatchScope matchScope = WithAnySuffix) const;
|
||||||
[[nodiscard]] FilePath searchInPath(const FilePaths &additionalDirs = {},
|
[[nodiscard]] FilePath searchInPath(const FilePaths &additionalDirs = {},
|
||||||
PathAmending = AppendToPath,
|
PathAmending = AppendToPath,
|
||||||
const FilePathPredicate &filter = {},
|
const FilePathPredicate &filter = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user