summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-03-07 12:55:02 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2013-03-07 14:15:54 +0100
commit0eb9899df511bef56110aef7b17f07d7c67169e0 (patch)
tree16c1dc943030fa9f0cd5cc7ee3c80ca5dec4b7cf /tools
parenta376c6a86813a6394031faab79610d92e43cd375 (diff)
Cleanup put and properly implement it for strings
Change-Id: I10dda09c8a087bc7ef34c0315c698e08c35ec28d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v4/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index eb46b719..d152f211 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -356,11 +356,11 @@ int main(int argc, char *argv[])
QQmlJS::VM::Object *globalObject = vm.globalObject.objectValue();
QQmlJS::VM::Object *print = new (ctx->engine->memoryManager) builtins::Print(ctx);
print->prototype = ctx->engine->objectPrototype;
- globalObject->__put__(ctx, vm.newIdentifier(QStringLiteral("print")),
+ globalObject->put(ctx, vm.newIdentifier(QStringLiteral("print")),
QQmlJS::VM::Value::fromObject(print));
QQmlJS::VM::Object *gc = new (ctx->engine->memoryManager) builtins::GC(ctx);
gc->prototype = ctx->engine->objectPrototype;
- globalObject->__put__(ctx, vm.newIdentifier(QStringLiteral("gc")),
+ globalObject->put(ctx, vm.newIdentifier(QStringLiteral("gc")),
QQmlJS::VM::Value::fromObject(gc));
foreach (const QString &fn, args) {