From 826d4eb5ac97f8f35b242eb2096cc36ade6ee236 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Mon, 31 Oct 2022 11:17:03 +0100 Subject: ConstructionState: Add helper function to take errors from creator As a drive-by, let AnnotatedQmlError's ctors take the QQmlError by value, and move-construct it into the member. Change-Id: I4c7aea5a966cfdb45abdc74ee352d5dd41b73aba Reviewed-by: Sami Shalayel Reviewed-by: Ulf Hermann --- src/qml/types/qqmlbind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/types/qqmlbind.cpp') diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp index fb9a9d2221..ed52ecb557 100644 --- a/src/qml/types/qqmlbind.cpp +++ b/src/qml/types/qqmlbind.cpp @@ -885,7 +885,7 @@ void QQmlBindPrivate::buildBindEntries(QQmlBind *q, QQmlComponentPrivate::Deferr if (constructionState.hasCreator()) { ++ep->inProgressCreations; constructionState.creator()->finalizePopulateDeferred(); - constructionState.appendErrors(constructionState.creator()->errors); + constructionState.appendCreatorErrors(); deferredState->push_back(std::move(constructionState)); } } else { -- cgit v1.2.3