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/libs/cplusplus/ModelManagerInterface.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/libs/cplusplus/ModelManagerInterface.h')
-rw-r--r-- | src/libs/cplusplus/ModelManagerInterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/ModelManagerInterface.h b/src/libs/cplusplus/ModelManagerInterface.h index 0a1f3217c4..943d32000b 100644 --- a/src/libs/cplusplus/ModelManagerInterface.h +++ b/src/libs/cplusplus/ModelManagerInterface.h @@ -147,7 +147,7 @@ public: virtual void findMacroUsages(const CPlusPlus::Macro ¯o) = 0; - virtual QList<LanguageUtils::FakeMetaObject *> exportedQmlObjects() const = 0; + virtual QList<LanguageUtils::FakeMetaObject::ConstPtr> exportedQmlObjects() const = 0; Q_SIGNALS: void documentUpdated(CPlusPlus::Document::Ptr doc); |