TaskTree: Change the signature of storage handlers

The handlers for TaskTree::onStorage{Setup,Done}(...)
took a pointer to the storage struct. Take a reference instead.
This is in line with tasks setup/done/error handlers.

Change-Id: I8ff18c250f0fbbcd8210ec304e34232e842831fc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-08-31 18:31:34 +02:00
parent 7730a329a3
commit 197a45b9b9
2 changed files with 6 additions and 6 deletions

View File

@@ -437,7 +437,7 @@ private:
StorageVoidHandler wrapHandler(StorageHandler &&handler) {
return [=](void *voidStruct) {
StorageStruct *storageStruct = static_cast<StorageStruct *>(voidStruct);
std::invoke(handler, storageStruct);
std::invoke(handler, *storageStruct);
};
}