TaskTree: Add TreeStorage::operator*()

Reuse it in some places.

Change-Id: I335f38fa0384ea17bd8e981d743f835c3f05b731
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-02-20 20:58:38 +01:00
parent dce7025969
commit 69ec9c4361
6 changed files with 18 additions and 19 deletions

View File

@@ -135,7 +135,7 @@ DiffFilesController::DiffFilesController(IDocument *document)
taskTree.setupRoot(tasks);
};
const auto onTreeDone = [this, storage] {
const QList<std::optional<FileData>> &results = *storage.activeStorage();
const QList<std::optional<FileData>> &results = *storage;
QList<FileData> finalList;
for (const std::optional<FileData> &result : results) {
if (result.has_value())