From 36662b60b09f636c3623057f8116e862f94ff440 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 10 Jan 2015 20:51:15 +0100 Subject: Remove all the setVTable() calls that aren't required anymore The memory manager's allocation methods now set this up correctly for us :) Change-Id: I8492bf732df601f95a1a851fb3804127ffc83935 Reviewed-by: Simon Hausmann --- tools/qmljs/qmljs.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/qmljs') diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp index f4a561fac6..ef0a3622f9 100644 --- a/tools/qmljs/qmljs.cpp +++ b/tools/qmljs/qmljs.cpp @@ -66,8 +66,8 @@ struct Print: FunctionObject { struct Data : Heap::FunctionObject { Data(ExecutionContext *scope) - : Heap::FunctionObject(scope, QStringLiteral("print")) { - setVTable(staticVTable()); + : Heap::FunctionObject(scope, QStringLiteral("print")) + { } }; V4_OBJECT(FunctionObject) @@ -93,7 +93,6 @@ struct GC: public FunctionObject Data(ExecutionContext *scope) : Heap::FunctionObject(scope, QStringLiteral("gc")) { - setVTable(staticVTable()); } }; -- cgit v1.2.3