aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp
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/clangparser/clangbuilder.cpp
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/clangparser/clangbuilder.cpp')
0 files changed, 0 insertions, 0 deletions