TaskTree: Simplify withCancel() implementation

Don't use nested group, use conjunction instead.

Change-Id: Ifd4a6d89d17b3fc6d90f8dff60e2f997759ed5a5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-10-15 06:46:12 +02:00
parent 43cc297cc6
commit 9bb79d088a

View File

@@ -1730,10 +1730,7 @@ Group ExecutableItem::withCancelImpl(
return Group {
parallel,
stopOnSuccessOrError,
Group {
finishAllAndError,
BarrierTask(onSetup)
},
BarrierTask(onSetup) && errorItem,
*this
};
}