diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-01-04 17:04:44 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-01-06 15:01:09 +0100 |
commit | ab642bc8206b291fb8b6f8a569ae4902a935187c (patch) | |
tree | e1439f85b5dce1424560f9ee14e8c971af9221ae /src/plugins/cpptools/cppmodelmanager.h | |
parent | 62d66fcd1542ebed3259606c792472c035960ebc (diff) | |
download | qt-creator-ab642bc8206b291fb8b6f8a569ae4902a935187c.tar.gz |
QmlJS: Add refcounting to FakeMetaObjects.
Previously they were leaked when a qmldump or the C++ exported QML
type list updated.
Just deleting the previous FakeMetaObjects is not an option, as they
might still be used in a QmlObjectValue owned by an Engine.
Reviewed-by: Erik Verbruggen
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index bd0bef0962..262a30d99f 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -131,7 +131,7 @@ public: virtual void findMacroUsages(const CPlusPlus::Macro ¯o); - virtual QList<LanguageUtils::FakeMetaObject *> exportedQmlObjects() const; + virtual QList<LanguageUtils::FakeMetaObject::ConstPtr> exportedQmlObjects() const; void setHeaderSuffixes(const QStringList &suffixes) { m_headerSuffixes = suffixes; } |