summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-04-21 14:16:28 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-04-24 08:05:51 (GMT)
commit28a9ac5147581d288aa98db0312f6ca455c909ae (patch)
tree212aca1060b8c2aea66e417786605594c8e853d6 /src/declarative/qml
parent86aaad45d7efd14abc935269142b179956d506ce (diff)
downloadQt-28a9ac5147581d288aa98db0312f6ca455c909ae.zip
Qt-28a9ac5147581d288aa98db0312f6ca455c909ae.tar.gz
Qt-28a9ac5147581d288aa98db0312f6ca455c909ae.tar.bz2
Fixed AST::cast<> for UiImport and UiImportList nodes.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/parser/javascriptast_p.h6
1 files 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;
}