diff options
-rw-r--r-- | src/qml/jsruntime/qv4lookup_p.h | 4 | ||||
-rw-r--r-- | src/qml/qml/qqml.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h index 1637d4d82e..05f784612f 100644 --- a/src/qml/jsruntime/qv4lookup_p.h +++ b/src/qml/jsruntime/qv4lookup_p.h @@ -210,10 +210,6 @@ struct Q_QML_PRIVATE_EXPORT Lookup { markDef.h2->mark(stack); } - void clear() { - memset(&markDef, 0, sizeof(markDef)); - } - void releasePropertyCache() { if (getter == getterQObject diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp index 50ba496912..f19950899e 100644 --- a/src/qml/qml/qqml.cpp +++ b/src/qml/qml/qqml.cpp @@ -1476,7 +1476,7 @@ void AOTCompiledContext::storeNameSloppy(uint nameIndex, void *value, QMetaType // the property cache we store a value into the property. QV4::Lookup l; - l.clear(); + memset(&l, 0, sizeof(QV4::Lookup)); l.nameIndex = nameIndex; l.forCall = false; ObjectPropertyResult storeResult = ObjectPropertyResult::NeedsInit; |