aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-03-27 15:16:03 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-04-19 11:00:18 +0000
commit4023ab3862eee7ca3084dd83ca76fba11b5db46b (patch)
tree5b52a1040fc5d5d34201c7484e479dac1fc6d0d2 /sources/pyside2/libpyside
parenta4690116881477d09f34f6b20b2ee0f31c06163d (diff)
Add default return value to pythonTypeIsValueType
When a class inherits from two base classes, Shiboken sets the converter of the newly created SbkObject to 0 (SbkObjectTypeTpNew), and handle the multiple inheritance in a different way. When any SbkObject try to release its ownership, it first verify if the ownership is already on the C++ side by checking the attribute hasOwership and also if the converter is a ValueType. The later fails if the converter is null, so a default value (false) was added. A test case using deleteLater() was included, which uses the releaseOwnership method internally. Task-number: PYSIDE-11 Change-Id: I34fba0d3e5d28b99b49a183ed08e977a311da632 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/libpyside')
0 files changed, 0 insertions, 0 deletions