diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-26 11:31:01 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-05 09:36:59 +0100 |
commit | d0fbcc90bd02090f921313dafecba20065fb2eb5 (patch) | |
tree | b369b0d3424222988b33bdeef4ffaacc00b7275d /sources/shiboken2/ApiExtractor/clangparser | |
parent | 44729f5c176e2585f00b6fefacffa7830b1e9f22 (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/clangparser')
0 files changed, 0 insertions, 0 deletions