diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-13 21:49:09 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-21 13:19:02 +0100 |
commit | 630f118f043edb88501e387d779c62c86b1030d4 (patch) | |
tree | 2c8c3cdcadae94b859760a0603e22748da33453a /src/qml/jsruntime/qv4string.cpp | |
parent | 47fbcb47771a36ab9fd0a4d5ede7b7504ab1410d (diff) |
Move the internalClass pointer into Heap::Object
The other classes that derive from Heap::Base don't need it
at all. So get rid of it there and save a pointer.
Change-Id: I9c5df2e43cd6eeac2e6e41f3d3b8077d3afbc8f2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4string.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4string.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4string.cpp b/src/qml/jsruntime/qv4string.cpp index ce47fc439e..adf4e67993 100644 --- a/src/qml/jsruntime/qv4string.cpp +++ b/src/qml/jsruntime/qv4string.cpp @@ -117,8 +117,7 @@ bool String::isEqualTo(Managed *t, Managed *o) } -Heap::String::String(ExecutionEngine *engine, const QString &t) - : Heap::Base(engine->emptyClass) +Heap::String::String(const QString &t) { subtype = String::StringType_Unknown; @@ -130,8 +129,7 @@ Heap::String::String(ExecutionEngine *engine, const QString &t) len = text->size; } -Heap::String::String(ExecutionEngine *engine, String *l, String *r) - : Heap::Base(engine->emptyClass) +Heap::String::String(String *l, String *r) { subtype = String::StringType_Unknown; |