aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject.cpp
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-08-07 22:55:52 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-08-18 20:26:51 +0000
commit92ec000e5581b22b0313c9fc80c258feeb7a025f (patch)
tree1114d56d526c7d70eda797ace1054e5e4c72a746 /src/qml/qml/qqmlvmemetaobject.cpp
parent3d4795b7d109d99726e17446d933bae1e22bb751 (diff)
Remove special case for var properties
In the new world order all the properties are QV4::Values. Therefore this special handling can be removed. Change-Id: Ia4d703256db7330936cd16a835d16d140adfe20e Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r--src/qml/qml/qqmlvmemetaobject.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp
index c7993e6ec7..89e8792b9f 100644
--- a/src/qml/qml/qqmlvmemetaobject.cpp
+++ b/src/qml/qml/qqmlvmemetaobject.cpp
@@ -52,8 +52,8 @@
QT_BEGIN_NAMESPACE
-QQmlVMEVariantQObjectPtr::QQmlVMEVariantQObjectPtr(bool isVar)
- : QQmlGuard<QObject>(0), m_target(0), m_isVar(isVar), m_index(-1)
+QQmlVMEVariantQObjectPtr::QQmlVMEVariantQObjectPtr()
+ : QQmlGuard<QObject>(0), m_target(0), m_index(-1)
{
}
@@ -64,8 +64,7 @@ QQmlVMEVariantQObjectPtr::~QQmlVMEVariantQObjectPtr()
void QQmlVMEVariantQObjectPtr::objectDestroyed(QObject *)
{
if (m_target && m_index >= 0) {
- // Set the var property to NULL
- if (m_isVar && m_target->propertiesInitialized && !m_target->properties.isUndefined()) {
+ if (m_target->propertiesInitialized && !m_target->properties.isUndefined()) {
QV4::ExecutionEngine *v4 = m_target->properties.engine();
if (v4) {
QV4::Scope scope(v4);
@@ -303,7 +302,7 @@ void QQmlVMEMetaObject::writeProperty(int id, QObject* v)
QQmlVMEVariantQObjectPtr *guard = getQObjectGuardForProperty(id);
if (v && !guard) {
- guard = new QQmlVMEVariantQObjectPtr(true);
+ guard = new QQmlVMEVariantQObjectPtr();
varObjectGuards.append(guard);
}
if (guard)
@@ -916,7 +915,7 @@ void QQmlVMEMetaObject::writeVarProperty(int id, const QV4::Value &value)
// Do we already have a QObject guard for this property?
if (valueObject && !guard) {
- guard = new QQmlVMEVariantQObjectPtr(true);
+ guard = new QQmlVMEVariantQObjectPtr();
varObjectGuards.append(guard);
}
}