diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-11-01 18:04:48 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-11-02 22:43:09 +0100 |
commit | bf0faf69e1e024118983a6763eb9bca2070564fc (patch) | |
tree | a3d3715ee9f99e65e61a6faf3839c68956a8ab93 /src/qml/qml/qqml.cpp | |
parent | b3c0505c53399868b0929c91adad3e6a3d207ab4 (diff) |
QtQml: Clear the whole lookup in storeNameSloppy()
The clear() method was only use by storeNameSloppy() for the temporary
lookup. It only cleared part of the lookup. Drop it and do the memset()
directly.
Pick-to: 6.6 6.5 6.2
Change-Id: Ib31be1d6fba09d2c86f3c4cd64626ab1fd90eb7f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r-- | src/qml/qml/qqml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |