aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/smartbinding/typesystem_smart.xml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-23 14:57:29 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-25 08:55:26 +0100
commit875bb91cc542103d2f0ad777452d5ac8ed960471 (patch)
tree1f21161abbc253824cb7a5b9032f0efaa2518153 /sources/shiboken6/tests/smartbinding/typesystem_smart.xml
parent3c24f0a856a166b4672921c4e1c2347ca397fdac (diff)
shiboken6: Add further methods to smart pointers
Add attributes for reset() and null-check. The shared pointer in the test uses isNull() which works due to the --use-isnull-as-nb_nonzero option, but it should be possible to explicitly specify that. [ChangeLog][shiboken6] Attributes for reset() and null-check of smart pointers have been added. Task-number: PYSIDE-454 Change-Id: I22571eeb43f7f98b6a77b31066bf8daa681cb044 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit eef987d0faaf1122f191a6ad92343d98f197715d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/tests/smartbinding/typesystem_smart.xml')
-rw-r--r--sources/shiboken6/tests/smartbinding/typesystem_smart.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/smartbinding/typesystem_smart.xml b/sources/shiboken6/tests/smartbinding/typesystem_smart.xml
index 46cb08267..64600de6c 100644
--- a/sources/shiboken6/tests/smartbinding/typesystem_smart.xml
+++ b/sources/shiboken6/tests/smartbinding/typesystem_smart.xml
@@ -45,6 +45,7 @@
won't work.
-->
<smart-pointer-type name="SharedPtr" type="shared" getter="data" ref-count-method="useCount"
+ null-check-method="isNull"
instantiations="Integer,Smart::Integer2,Obj"/>
<object-type name="Obj" />