aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-08-29 21:23:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-02 17:27:36 +0200
commitd8e31c098dade7280f21ca9781ba11bee5e4f201 (patch)
tree793b7e5566e75b9c0ef45693d36cb57839a4233c /tools
parentedee5c3dc0d922ec3b6a44d66193e9a57b8a979e (diff)
Cleanup calls to Object::setPrototype()
Rather use the correct internalClass directly when constructing the objects. Change-Id: I8e916f1ce8f83d291c08ca6332fe85b1f57b90b5 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v4/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index 1e78ac3f1a..e4a03339e1 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -190,10 +190,8 @@ int main(int argc, char *argv[])
QV4::Object *globalObject = vm.globalObject;
QV4::Object *print = new (ctx->engine->memoryManager) builtins::Print(ctx);
- print->setPrototype(ctx->engine->objectPrototype);
globalObject->put(vm.newIdentifier(QStringLiteral("print")), QV4::Value::fromObject(print));
QV4::Object *gc = new (ctx->engine->memoryManager) builtins::GC(ctx);
- gc->setPrototype(ctx->engine->objectPrototype);
globalObject->put(vm.newIdentifier(QStringLiteral("gc")), QV4::Value::fromObject(gc));
foreach (const QString &fn, args) {