From 28a9ac5147581d288aa98db0312f6ca455c909ae Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 21 Apr 2009 16:16:28 +0200 Subject: Fixed AST::cast<> for UiImport and UiImportList nodes. --- src/declarative/qml/parser/javascriptast_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarative/qml/parser/javascriptast_p.h b/src/declarative/qml/parser/javascriptast_p.h index 9e5e3e4..87105c3 100644 --- a/src/declarative/qml/parser/javascriptast_p.h +++ b/src/declarative/qml/parser/javascriptast_p.h @@ -455,7 +455,7 @@ public: ElementList(Elision *e, ExpressionNode *expr): elision (e), expression (expr), next (this) - { kind = K; } + { kind = K; } ElementList(ElementList *previous, Elision *e, ExpressionNode *expr): elision (e), expression (expr) @@ -1739,8 +1739,7 @@ public: UiImport(JavaScriptNameIdImpl *fileName) : fileName(fileName) - { - } + { kind = K; } virtual void accept0(Visitor *visitor); @@ -1764,6 +1763,7 @@ public: UiImportList(UiImportList *previous, UiImport *import) : import(import) { + kind = K; next = previous->next; previous->next = this; } -- cgit v0.12