From c9aec06723099a44bfb3481c917271dd9776911a Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 8 Jul 2024 18:13:02 +0200 Subject: [PATCH] TaskTree: Simplify Group construction in DataExchange example Change-Id: I911f41da0f719471a324e190f4a77c0c8f58fd67 Reviewed-by: hjk --- tests/manual/tasking/dataexchange/recipe.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/manual/tasking/dataexchange/recipe.cpp b/tests/manual/tasking/dataexchange/recipe.cpp index cb472eafd42..78682b19e66 100644 --- a/tests/manual/tasking/dataexchange/recipe.cpp +++ b/tests/manual/tasking/dataexchange/recipe.cpp @@ -69,7 +69,7 @@ Group recipe(const Storage &externalStorage) externalStorage->outputImages.insert(repeater.iteration(), data.result()); }; - const QList recipe { + return Group { externalStorage, internalStorage, NetworkQueryTask(onDownloadSetup, onDownloadDone), @@ -80,5 +80,4 @@ Group recipe(const Storage &externalStorage) ConcurrentCallTask(onScaleSetup, onScaleDone) } }; - return recipe; }