aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcustomparser.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2012-05-04 13:14:43 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-04 18:15:03 +0200
commitff55f825234dc7ba7fa1436abebd59f2c0f5e5c9 (patch)
tree63cb8c0b8fe15eea40073f7ce1b478dc669fa3bf /src/qml/qml/qqmlcustomparser.cpp
parent31abe4e2cd65f1fdf9acec29effd85e6b1af73c3 (diff)
Minor optimizations and cleanup
Change-Id: Iecbd5c46af00f649b1f1d78cdf5f2b40a2844897 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlcustomparser.cpp')
-rw-r--r--src/qml/qml/qqmlcustomparser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcustomparser.cpp b/src/qml/qml/qqmlcustomparser.cpp
index f888b61e7d..67e580ccc4 100644
--- a/src/qml/qml/qqmlcustomparser.cpp
+++ b/src/qml/qml/qqmlcustomparser.cpp
@@ -97,7 +97,8 @@ QQmlCustomParserNode
QQmlCustomParserNodePrivate::fromObject(QQmlScript::Object *root)
{
QQmlCustomParserNode rootNode;
- rootNode.d->name = root->typeName;
+ if (root->typeReference)
+ rootNode.d->name = root->typeReference->name;
rootNode.d->location = root->location.start;
for (Property *p = root->properties.first(); p; p = root->properties.next(p)) {