TaskTree: Use common done handler

Instead of specifying two separate done and error handlers,
specify just one that takes additional "bool success" argument.

Task-number: QTCREATORBUG-29834
Change-Id: Ie4f92236a38b03dac3dd33b2c80a317b62772a12
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-11-02 16:14:50 +01:00
parent 0e7ecee489
commit 0fa16f8489
21 changed files with 209 additions and 217 deletions

View File

@@ -164,8 +164,8 @@ GroupItem AbstractProcessStep::defaultProcessTask()
const auto onSetup = [this](Process &process) {
return setupProcess(process) ? SetupResult::Continue : SetupResult::StopWithError;
};
const auto onEnd = [this](const Process &process) { handleProcessDone(process); };
return ProcessTask(onSetup, onEnd, onEnd);
const auto onDone = [this](const Process &process, bool) { handleProcessDone(process); };
return ProcessTask(onSetup, onDone);
}
bool AbstractProcessStep::setupProcess(Process &process)