diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-10-31 11:17:03 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-11-10 15:00:11 +0100 |
commit | 826d4eb5ac97f8f35b242eb2096cc36ade6ee236 (patch) | |
tree | 407fbf8408c8ea4a608dd6eb302dd12d6cff56a2 /src/qml/types/qqmlbind.cpp | |
parent | 0e4e74bffc102d6e8e3f220562231914b75c8027 (diff) |
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 <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/types/qqmlbind.cpp')
-rw-r--r-- | src/qml/types/qqmlbind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |