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)
{
}
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);
QQmlVMEVariantQObjectPtr *guard = getQObjectGuardForProperty(id);
if (v && !guard) {
- guard = new QQmlVMEVariantQObjectPtr(true);
+ guard = new QQmlVMEVariantQObjectPtr();
varObjectGuards.append(guard);
}
if (guard)
// Do we already have a QObject guard for this property?
if (valueObject && !guard) {
- guard = new QQmlVMEVariantQObjectPtr(true);
+ guard = new QQmlVMEVariantQObjectPtr();
varObjectGuards.append(guard);
}
}
class QQmlVMEVariantQObjectPtr : public QQmlGuard<QObject>
{
public:
- inline QQmlVMEVariantQObjectPtr(bool isVar);
+ inline QQmlVMEVariantQObjectPtr();
inline ~QQmlVMEVariantQObjectPtr();
inline void objectDestroyed(QObject *);
inline void setGuardedValue(QObject *obj, QQmlVMEMetaObject *target, int index);
QQmlVMEMetaObject *m_target;
- unsigned m_isVar : 1; // TODO: remove?
- int m_index : 31;
+ int m_index;
};
class QQmlVMEVariant;