diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-01-16 10:14:21 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-01-16 14:38:30 +0100 |
commit | b4144265b820a852ae7670edbee529b7a42818b1 (patch) | |
tree | 96acb4c201084feb307bee2d6e1276510b5cf361 /sources/shiboken6/generator/shiboken/cppgenerator.cpp | |
parent | 31e7f5325ec852ddf46ecff978a3140406154274 (diff) |
Shiboken.wrapInstance(): Return existing instance (preserve ids)
Before calling newObject(), check whether a wrapper already
exists and return that. newObject() actually also has checks for
this, but it then invalidates the existing wrapper.
Task-number: PYSIDE-31
Change-Id: Ifb8c33ebb6b4e2e976c207dd324fb8df29f043b1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/cppgenerator.cpp')
0 files changed, 0 insertions, 0 deletions