aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-22 00:09:24 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-22 21:54:09 +0200
commit522c91f41f857bf2b52881d0bea2e07468516a42 (patch)
treec2ed837e615e6495723abd5dce0b0dba681d8b99 /tools
parent4af39f1d8e2371ea5d913493b23eabffc1fb22c6 (diff)
Remove context parameter from Manged::put.
Change-Id: Ib99e726ffbb20463d45a8444b4fbdfe32cd6dbef Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v4/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index e30fd8d21c..bc95178397 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -137,7 +137,7 @@ static void showException(QV4::ExecutionContext *ctx, const QV4::Exception &exce
std::cerr << qPrintable(msg->buildFullMessage(ctx)->toQString()) << std::endl;
}
} else {
- std::cerr << "Uncaught exception: " << qPrintable(e->get(ctx, ctx->engine->newString(QStringLiteral("message")), 0).toString(ctx)->toQString()) << std::endl;
+ std::cerr << "Uncaught exception: " << qPrintable(e->get(ctx->engine->newString(QStringLiteral("message")), 0).toString(ctx)->toQString()) << std::endl;
}
}
@@ -379,12 +379,10 @@ int main(int argc, char *argv[])
QV4::Object *globalObject = vm.globalObject;
QV4::Object *print = new (ctx->engine->memoryManager) builtins::Print(ctx);
print->prototype = ctx->engine->objectPrototype;
- globalObject->put(ctx, vm.newIdentifier(QStringLiteral("print")),
- QV4::Value::fromObject(print));
+ globalObject->put(vm.newIdentifier(QStringLiteral("print")), QV4::Value::fromObject(print));
QV4::Object *gc = new (ctx->engine->memoryManager) builtins::GC(ctx);
gc->prototype = ctx->engine->objectPrototype;
- globalObject->put(ctx, vm.newIdentifier(QStringLiteral("gc")),
- QV4::Value::fromObject(gc));
+ globalObject->put(vm.newIdentifier(QStringLiteral("gc")), QV4::Value::fromObject(gc));
foreach (const QString &fn, args) {
QFile file(fn);