diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-09-17 09:59:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 14:26:46 +0200 |
commit | 6b5177a7565c7b4c4f49a636d135f8ea4e443506 (patch) | |
tree | bf3dfdd1bf74b1d9c0b21173b3e3132098486e81 /src/qml/qml/qqmlobjectcreator_p.h | |
parent | f7cd6238ada2745eea13ceff168e7d65b7263866 (diff) |
[new compiler] Cleanups
Make the v4 context to use for binding expressions/functions/signal handlers
a member variable instead of a function parameter, as it doesn't change
frequently.
Change-Id: I8a73bbc3f37c116d29172d5c935c66ecf2f67a38
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator_p.h')
-rw-r--r-- | src/qml/qml/qqmlobjectcreator_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlobjectcreator_p.h b/src/qml/qml/qqmlobjectcreator_p.h index 62c344194e..6bdcf623ca 100644 --- a/src/qml/qml/qqmlobjectcreator_p.h +++ b/src/qml/qml/qqmlobjectcreator_p.h @@ -96,10 +96,10 @@ public: private: bool populateInstance(int index, QObject *instance, QQmlRefPointer<QQmlPropertyCache> cache); - void setupBindings(QV4::ExecutionContext *qmlContext); - bool setPropertyValue(QV4::ExecutionContext *qmlContext, QQmlPropertyData *property, int index, const QV4::CompiledData::Binding *binding); + void setupBindings(); + bool setPropertyValue(QQmlPropertyData *property, int index, const QV4::CompiledData::Binding *binding); void setPropertyValue(QQmlPropertyData *property, const QV4::CompiledData::Binding *binding); - void setupFunctions(QV4::ExecutionContext *qmlContext); + void setupFunctions(); QString stringAt(int idx) const { return unit->header.stringAt(idx); } void recordError(const QV4::CompiledData::Location &location, const QString &description); @@ -122,6 +122,7 @@ private: QQmlVMEMetaObject *_vmeMetaObject; QVector<QQmlAbstractBinding*> _createdBindings; QQmlListProperty<void> _currentList; + QV4::ExecutionContext *_qmlContext; }; QT_END_NAMESPACE |