projects
/
profile
/
ivi
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d12c930
)
Don't access metaobject unnecessarily
author
Aaron Kennedy
<aaron.kennedy@nokia.com>
Thu, 24 May 2012 13:28:13 +0000
(14:28 +0100)
committer
Qt by Nokia
<qt-info@nokia.com>
Thu, 24 May 2012 15:50:25 +0000
(17:50 +0200)
Otherwise any lazy meta objects will need to be created.
Change-Id: I5895618ddf3344547e739c4b22ad637b26d521ad
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
src/qml/qml/qqmlvmemetaobject_p.h
patch
|
blob
|
history
diff --git
a/src/qml/qml/qqmlvmemetaobject_p.h
b/src/qml/qml/qqmlvmemetaobject_p.h
index
9927de0
..
77e300d
100644
(file)
--- a/
src/qml/qml/qqmlvmemetaobject_p.h
+++ b/
src/qml/qml/qqmlvmemetaobject_p.h
@@
-245,7
+245,7
@@
QQmlVMEMetaObject *QQmlVMEMetaObject::get(QObject *obj)
if (obj) {
if (QQmlData *data = QQmlData::get(obj)) {
if (data->hasVMEMetaObject)
- return
const_cast<QQmlVMEMetaObject *>(static_cast<const QQmlVMEMetaObject *>(obj->metaObject())
);
+ return
static_cast<QQmlVMEMetaObject *>(QObjectPrivate::get(obj)->metaObject
);
}
}