diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-01-04 12:14:23 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-02-09 07:55:36 +0000 |
commit | ea164ca4a8ec1e5c568ab82c0c4256a841f77bf0 (patch) | |
tree | c27efe4df69f429591c0a383b6be999a013a397f /src/qml/jsruntime/qv4engine_p.h | |
parent | 394a7c5156162bd7ca1229b033e50c8f56d04069 (diff) |
Change creation of new internal classes
So far we often began with the empty class again when creating
new internal classes. This allowed for multiple paths through the
internal class hierarchy ending up at the same internal class object.
But to be able to efficiently garbage collect internal classes, we
need to have only one path to each instance of an internal class.
Change-Id: Ic6c1f2b3d021e92b44f76a04a8886820e63e8f26
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index 2b69b5506d..32e7d9be44 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -451,7 +451,7 @@ public: void initRootContext(); - InternalClass *newClass(const InternalClass &other); + InternalClass *newClass(InternalClass *other); StackTrace exceptionStackTrace; |