From: Aaron Kennedy Date: Thu, 24 May 2012 13:28:13 +0000 (+0100) Subject: Don't access metaobject unnecessarily X-Git-Tag: 071012131707~300 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=723ae1c9502af30889e1edd5d0a2d5800bbd42d8;p=profile%2Fivi%2Fqtdeclarative.git Don't access metaobject unnecessarily Otherwise any lazy meta objects will need to be created. Change-Id: I5895618ddf3344547e739c4b22ad637b26d521ad Reviewed-by: Roberto Raggi --- diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h index 9927de0..77e300d 100644 --- 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(static_cast(obj->metaObject())); + return static_cast(QObjectPrivate::get(obj)->metaObject); } }