summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-08-10 00:38:41 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-08-10 00:38:41 (GMT)
commit94badeee58b6d81ba01966fa21461f31b51fa206 (patch)
tree2822e5bc0680a2089cd2b8b426cc5c4323a4f6dd
parent4cbb70502828d0cac808e891f3b9e586c9c9b0c1 (diff)
downloadQt-94badeee58b6d81ba01966fa21461f31b51fa206.zip
Qt-94badeee58b6d81ba01966fa21461f31b51fa206.tar.gz
Qt-94badeee58b6d81ba01966fa21461f31b51fa206.tar.bz2
Avoid pointless QMetaProperty lookup
-rw-r--r--src/declarative/qml/qmlmetaproperty.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp
index 09ca872..64dd9cd 100644
--- a/src/declarative/qml/qmlmetaproperty.cpp
+++ b/src/declarative/qml/qmlmetaproperty.cpp
@@ -901,12 +901,11 @@ void QmlMetaProperty::write(const QVariant &value) const
if (!d->object)
return;
- QMetaProperty prop = d->object->metaObject()->property(d->coreIdx);
if (type() & SignalProperty) {
d->writeSignalProperty(value);
- } else if (prop.name()) {
+ } else if (d->coreIdx != -1) {
d->writeValueProperty(value);