aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-18 12:31:55 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-22 01:06:20 +0200
commit3c325823a778e1a6542eb746e047d5d7bfb43566 (patch)
tree66b22c22c32fd719d0bdb0018cc1da5403d69180 /src/qml/jsruntime/qv4functionobject.cpp
parent50624234f2c0b6d3b0985edb8ff0b6aad5cad761 (diff)
Cleanup Object::define*Property API
Change-Id: I99125908a9bc1d41a2642c409af9704def7a0832 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 18bf4ed6b5..851bc49c6b 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -267,17 +267,17 @@ FunctionPrototype::FunctionPrototype(InternalClass *ic)
{
}
-void FunctionPrototype::init(ExecutionContext *ctx, const Value &ctor)
+void FunctionPrototype::init(ExecutionEngine *engine, const Value &ctor)
{
- ctor.objectValue()->defineReadonlyProperty(ctx->engine->id_length, Value::fromInt32(1));
- ctor.objectValue()->defineReadonlyProperty(ctx->engine->id_prototype, Value::fromObject(this));
+ ctor.objectValue()->defineReadonlyProperty(engine->id_length, Value::fromInt32(1));
+ ctor.objectValue()->defineReadonlyProperty(engine->id_prototype, Value::fromObject(this));
- defineReadonlyProperty(ctx->engine->id_length, Value::fromInt32(0));
- defineDefaultProperty(ctx, QStringLiteral("constructor"), ctor);
- defineDefaultProperty(ctx, QStringLiteral("toString"), method_toString, 0);
- defineDefaultProperty(ctx, QStringLiteral("apply"), method_apply, 2);
- defineDefaultProperty(ctx, QStringLiteral("call"), method_call, 1);
- defineDefaultProperty(ctx, QStringLiteral("bind"), method_bind, 1);
+ defineReadonlyProperty(engine->id_length, Value::fromInt32(0));
+ defineDefaultProperty(QStringLiteral("constructor"), ctor);
+ defineDefaultProperty(QStringLiteral("toString"), method_toString, 0);
+ defineDefaultProperty(QStringLiteral("apply"), method_apply, 2);
+ defineDefaultProperty(QStringLiteral("call"), method_call, 1);
+ defineDefaultProperty(QStringLiteral("bind"), method_bind, 1);
}