forked from qt-creator/qt-creator
Utils: Use an enum indication the possible abort of an dir iteration
The bool is not really clear. Change-Id: I4ce6412736aec6b1853fd53d4e535ad045748350 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -524,8 +524,10 @@ FilePaths FilePath::dirEntries(const FileFilter &filter, QDir::SortFlags sort) c
|
||||
{
|
||||
FilePaths result;
|
||||
|
||||
const auto callBack = [&result](const FilePath &path) { result.append(path); return true; };
|
||||
iterateDirectory(callBack, filter);
|
||||
iterateDirectory(
|
||||
[&result](const FilePath &path) { result.append(path); return IterationPolicy::Continue; },
|
||||
filter
|
||||
);
|
||||
|
||||
// FIXME: Not all flags supported here.
|
||||
const QDir::SortFlags sortBy = (sort & QDir::SortByMask);
|
||||
|
||||
Reference in New Issue
Block a user