diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-28 12:58:08 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-22 08:20:09 +0000 |
commit | 2a8de9d8d85c5ce3e9c61fd8c0e957521f6a0846 (patch) | |
tree | 746957dfed49e0b13daaa7a0c4da9b5bd453d576 /tools/qmljs/qmljs.cpp | |
parent | b3cdc489142e673c8cb6ac81df7d01191a30c1aa (diff) |
Convert FunctionObjects to new allocation syntax
Change-Id: I269c20abdc7f9eb0d71a2d2d485d622b65405762
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools/qmljs/qmljs.cpp')
-rw-r--r-- | tools/qmljs/qmljs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp index a882c5ef50..132817ff8c 100644 --- a/tools/qmljs/qmljs.cpp +++ b/tools/qmljs/qmljs.cpp @@ -188,9 +188,9 @@ int main(int argc, char *argv[]) QV4::Scope scope(&vm); QV4::ScopedContext ctx(scope, vm.rootContext()); - QV4::ScopedObject print(scope, vm.memoryManager->alloc<builtins::Print>(vm.rootContext())); + QV4::ScopedObject print(scope, vm.memoryManager->allocObject<builtins::Print>(vm.rootContext())); vm.globalObject->put(QV4::ScopedString(scope, vm.newIdentifier(QStringLiteral("print"))).getPointer(), print); - QV4::ScopedObject gc(scope, vm.memoryManager->alloc<builtins::GC>(ctx)); + QV4::ScopedObject gc(scope, vm.memoryManager->allocObject<builtins::GC>(ctx)); vm.globalObject->put(QV4::ScopedString(scope, vm.newIdentifier(QStringLiteral("gc"))).getPointer(), gc); foreach (const QString &fn, args) { |