forked from qt-creator/qt-creator
TaskTree: Introduce CallDoneIf enum
Get rid of CustomTask c'tor taking 3 handlers. If the done handler needs to be called only on success or an error, add explicit 3rd arg of CallDoneIf type. Task-number: QTCREATORBUG-29834 Change-Id: I10e55415587e6cac46620dd5177ad8269584583c Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -171,7 +171,7 @@ static void filterCurrentResults(QPromise<void> &promise, const LocatorStorage &
|
||||
[](const Entry &entry) { return entry.entry; }));
|
||||
}
|
||||
|
||||
LocatorMatcherTask currentDocumentMatcher()
|
||||
static LocatorMatcherTask currentDocumentMatcher()
|
||||
{
|
||||
using namespace Tasking;
|
||||
|
||||
@@ -193,7 +193,7 @@ LocatorMatcherTask currentDocumentMatcher()
|
||||
|
||||
const Group root {
|
||||
Tasking::Storage(resultStorage),
|
||||
CurrentDocumentSymbolsRequestTask(onQuerySetup, onQueryDone),
|
||||
CurrentDocumentSymbolsRequestTask(onQuerySetup, onQueryDone, CallDoneIf::Success),
|
||||
AsyncTask<void>(onFilterSetup)
|
||||
};
|
||||
return {root, storage};
|
||||
|
||||
Reference in New Issue
Block a user