summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-16 08:30:04 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-16 08:30:04 (GMT)
commit7db99f103981b6b45cb70a5837eb6b439d33e207 (patch)
treeca9163d9bc8336a83e2f2ff364aefed5c38f204f /src/declarative/qml/qmlcompiler.cpp
parentd51de46fe6d52126c57623156a5c7e4ed61a51a7 (diff)
downloadQt-7db99f103981b6b45cb70a5837eb6b439d33e207.zip
Qt-7db99f103981b6b45cb70a5837eb6b439d33e207.tar.gz
Qt-7db99f103981b6b45cb70a5837eb6b439d33e207.tar.bz2
Tests
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r--src/declarative/qml/qmlcompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index 2cb44a3..9000339 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -2044,12 +2044,12 @@ bool QmlCompiler::checkDynamicMeta(QmlParser::Object *obj)
if (prop.isDefaultProperty) {
if (seenDefaultProperty)
- COMPILE_EXCEPTION(obj, qApp->translate("QmlCompiler","Duplicate default property"));
+ COMPILE_EXCEPTION(&prop, qApp->translate("QmlCompiler","Duplicate default property"));
seenDefaultProperty = true;
}
if (propNames.contains(prop.name))
- COMPILE_EXCEPTION(obj, qApp->translate("QmlCompiler","Duplicate property name"));
+ COMPILE_EXCEPTION(&prop, qApp->translate("QmlCompiler","Duplicate property name"));
propNames.insert(prop.name);
}