diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-18 12:31:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-22 01:06:20 +0200 |
commit | 3c325823a778e1a6542eb746e047d5d7bfb43566 (patch) | |
tree | 66b22c22c32fd719d0bdb0018cc1da5403d69180 /src/qml/jsruntime/qv4sequenceobject.cpp | |
parent | 50624234f2c0b6d3b0985edb8ff0b6aad5cad761 (diff) |
Cleanup Object::define*Property API
Change-Id: I99125908a9bc1d41a2642c409af9704def7a0832
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4sequenceobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4sequenceobject.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/jsruntime/qv4sequenceobject.cpp b/src/qml/jsruntime/qv4sequenceobject.cpp index 72356204b5..d1f9363a7b 100644 --- a/src/qml/jsruntime/qv4sequenceobject.cpp +++ b/src/qml/jsruntime/qv4sequenceobject.cpp @@ -175,7 +175,7 @@ public: { type = Type_QmlSequence; vtbl = &static_vtbl; - init(engine); + init(); } QQmlSequence(QV4::ExecutionEngine *engine, QObject *object, int propertyIndex) @@ -187,12 +187,12 @@ public: type = Type_QmlSequence; vtbl = &static_vtbl; loadReference(); - init(engine); + init(); } - void init(ExecutionEngine *engine) + void init() { - defineAccessorProperty(engine, QStringLiteral("length"), method_get_length, method_set_length); + defineAccessorProperty(QStringLiteral("length"), method_get_length, method_set_length); } QV4::Value containerGetIndexed(uint index, bool *hasProperty) @@ -532,10 +532,10 @@ SequencePrototype::SequencePrototype(InternalClass *ic) } #undef REGISTER_QML_SEQUENCE_METATYPE -void SequencePrototype::init(QV4::ExecutionEngine *engine) +void SequencePrototype::init() { - defineDefaultProperty(engine, QStringLiteral("sort"), method_sort, 1); - defineDefaultProperty(engine, QStringLiteral("valueOf"), method_valueOf, 0); + defineDefaultProperty(QStringLiteral("sort"), method_sort, 1); + defineDefaultProperty(QStringLiteral("valueOf"), method_valueOf, 0); } QV4::ReturnedValue SequencePrototype::method_sort(QV4::SimpleCallContext *ctx) |