aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@qt.io>2022-10-17 14:24:35 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-10-19 20:32:01 +0200
commit0f08e3e673ece32fc9ada041115a0df631b447f3 (patch)
tree5b8b7ed8a1c1373ca1bed9579f27d6b6c77a7979 /src/qml/parser
parent145e756d8cd68acfd6baee9cecbb319293d94c0c (diff)
qml: fix TypeArgumentList
All type annotations in qml did drop any typeArgument due to a bug in TypeArgumentList: instead of keeping a circular list that is inverted while building, and finally transformed in the inverse in the finish() method, it kept a singly linked list and the finish method would return a nullptr. Fix the formatting and indenting of type annotations now that they work. Pick-to: 6.4 Task-number: QTBUG-107171 Change-Id: I9deff83d328c5c0784a4104e406036a435278945 Reviewed-by: Semih Yavuz <semih.yavuz@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/parser')
-rw-r--r--src/qml/parser/qqmljsast_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljsast_p.h b/src/qml/parser/qqmljsast_p.h
index b74b5c7a07..3c2b50abd1 100644
--- a/src/qml/parser/qqmljsast_p.h
+++ b/src/qml/parser/qqmljsast_p.h
@@ -369,7 +369,7 @@ public:
TypeArgumentList(Type *typeId)
: typeId(typeId)
- , next(nullptr)
+ , next(this)
{ kind = K; }
TypeArgumentList(TypeArgumentList *previous, Type *typeId)