aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmljs/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmljs/main.cpp')
-rw-r--r--tools/qmljs/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmljs/main.cpp b/tools/qmljs/main.cpp
index 32a45d9289..9c10851b21 100644
--- a/tools/qmljs/main.cpp
+++ b/tools/qmljs/main.cpp
@@ -72,7 +72,7 @@ using namespace QV4;
struct Print: FunctionObject
{
Print(ExecutionContext *scope): FunctionObject(scope, QStringLiteral("print")) {
- vtbl = &static_vtbl;
+ setVTable(&static_vtbl);
}
static ReturnedValue call(Managed *, CallData *callData)
@@ -97,7 +97,7 @@ struct GC: public FunctionObject
GC(ExecutionContext* scope)
: FunctionObject(scope, QStringLiteral("gc"))
{
- vtbl = &static_vtbl;
+ setVTable(&static_vtbl);
}
static ReturnedValue call(Managed *m, CallData *)
{