summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-16 07:08:50 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-16 07:08:50 (GMT)
commitd71ef06fc1261968b8c5ecf7a438db02e2654b29 (patch)
treef530a2b311bea40e13fdfe2bb2da0ccb4aa72b65 /src/declarative/qml/qmlscriptparser.cpp
parentd080c1c2ded0d59974f86f9f3dac91b099bda0a9 (diff)
downloadQt-d71ef06fc1261968b8c5ecf7a438db02e2654b29.zip
Qt-d71ef06fc1261968b8c5ecf7a438db02e2654b29.tar.gz
Qt-d71ef06fc1261968b8c5ecf7a438db02e2654b29.tar.bz2
Protect against overriding FINAL properties
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index 5f97c71..c1c11c7 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -530,8 +530,8 @@ bool ProcessAST::visit(AST::UiPublicMember *node)
property.isDefaultProperty = node->isDefaultMember;
property.type = type;
property.name = name.toUtf8();
- property.range.offset = node->firstSourceLocation().offset;
- property.range.length = node->semicolonToken.end() - property.range.offset;
+ property.location = location(node->firstSourceLocation(),
+ node->lastSourceLocation());
if (node->expression) { // default value
property.defaultValue = new Property;