diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2012-08-28 10:48:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 04:32:48 +0200 |
commit | 7223f1861d3309d336123c90866665cfe2507d7f (patch) | |
tree | 66c926fe85b8e08b6d79eebc36ec2d124e7b3453 /src/qml/qml/qqmlpropertycache_p.h | |
parent | 70a2c0491d66aa05f9e9e67f8a845f4df84da857 (diff) |
Fix leak introduced in 0853343c33e394f35c31c161b019b2aed17f9256.
Change-Id: I7e23f2ba8e7ecbcfaddce1ac4224434aa5fbe69b
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertycache_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h index e846590a85..ad94ed4688 100644 --- a/src/qml/qml/qqmlpropertycache_p.h +++ b/src/qml/qml/qqmlpropertycache_p.h @@ -285,7 +285,7 @@ public: QQmlPropertyData *property(int) const; QQmlPropertyData *method(int) const; - QQmlPropertyData *signal(int) const; + QQmlPropertyData *signal(int index) const { return signal(index, 0); } int methodIndexToSignalIndex(int) const; QStringList propertyNames() const; @@ -345,6 +345,8 @@ private: // Implemented in v8/qv8qobjectwrapper.cpp v8::Local<v8::Object> newQObject(QObject *, QV8Engine *); + QQmlPropertyData *signal(int, QQmlPropertyCache **) const; + typedef QVector<QQmlPropertyData> IndexCache; typedef QStringMultiHash<QPair<int, QQmlPropertyData *> > StringCache; typedef QVector<int> AllowedRevisionCache; |