diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-04-03 13:00:49 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-07-22 13:48:53 +0200 |
commit | 4427576fe548b6f9f8acba6a5ac3082fbbb99724 (patch) | |
tree | 309f80779da95f337dd869e1990ffd4f0bb9b724 /tools/qmljs | |
parent | 08a3c0edeb3cdfa15a9fecdfb4c7c1ab82227437 (diff) |
Avoid calling destroy() on most objects
The method is now optional, and we can simply avoid
calling it if all members an object has are themselves
garbage collected.
Change-Id: If560fce051908bcc10409ead1a7d8a5bd5fa71d2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools/qmljs')
-rw-r--r-- | tools/qmljs/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmljs/main.cpp b/tools/qmljs/main.cpp index aaddfbf904..26376faa69 100644 --- a/tools/qmljs/main.cpp +++ b/tools/qmljs/main.cpp @@ -90,7 +90,7 @@ struct Print: FunctionObject } }; -DEFINE_OBJECT_VTABLE(Print); +DEFINE_OBJECT_VTABLE_NO_DESTROY(Print); struct GC: public FunctionObject { @@ -107,7 +107,7 @@ struct GC: public FunctionObject } }; -DEFINE_OBJECT_VTABLE(GC); +DEFINE_OBJECT_VTABLE_NO_DESTROY(GC); } // builtins |