aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-26 11:31:01 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-12-05 09:36:59 +0100
commitd0fbcc90bd02090f921313dafecba20065fb2eb5 (patch)
treeb369b0d3424222988b33bdeef4ffaacc00b7275d /sources/shiboken2/ApiExtractor/typesystem.h
parent44729f5c176e2585f00b6fefacffa7830b1e9f22 (diff)
shiboken: Fix passing of the parent type to smart pointer init functions
The code was assuming that smart pointers instances live in the global namespace and passed the module as parent, which does not work in case of std::shared_ptr. Factor out the code writing the init function call and use the same code for classes and smart pointer instances. Task-number: PYSIDE-454 Change-Id: Iffe5ace31d734dd19ca784841344c50248952342 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystem.h')
-rw-r--r--sources/shiboken2/ApiExtractor/typesystem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h
index 7f5eaac4b..0cbcc9c25 100644
--- a/sources/shiboken2/ApiExtractor/typesystem.h
+++ b/sources/shiboken2/ApiExtractor/typesystem.h
@@ -606,6 +606,8 @@ public:
const TypeEntry *parent() const { return m_parent; }
void setParent(const TypeEntry *p) { m_parent = p; }
const TypeSystemTypeEntry *typeSystemTypeEntry() const;
+ // cf AbstractMetaClass::targetLangEnclosingClass()
+ const TypeEntry *targetLangEnclosingEntry() const;
bool isPrimitive() const
{