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:
@@ -733,7 +733,10 @@ void DebuggerItemManagerPrivate::autoDetectGdbOrLldbDebuggers(const FilePaths &s
|
||||
|
||||
paths = Utils::filteredUnique(paths);
|
||||
|
||||
const auto addSuspect = [&suspects](const FilePath &entry) { suspects.append(entry); return true; };
|
||||
const auto addSuspect = [&suspects](const FilePath &entry) {
|
||||
suspects.append(entry);
|
||||
return IterationPolicy::Continue;
|
||||
};
|
||||
for (const FilePath &path : paths)
|
||||
path.iterateDirectory(addSuspect, {filters, QDir::Files | QDir::Executable});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user