aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 32e29742d..75a8e47fe 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -125,12 +125,9 @@
</modify-argument>
</modify-function>
<modify-function signature="children()const">
- <inject-code class="target" position="end">
- Py_ssize_t max = PyList_GET_SIZE(%PYARG_0);
- for (int i = 0; i &lt; max; ++i) {
- Shiboken::setParent(%PYSELF, PyList_GET_ITEM(%PYARG_0, i));
- }
- </inject-code>
+ <modify-argument index="return">
+ <parent index="this" action="add"/>
+ </modify-argument>
</modify-function>
</object-type>
<object-type name="ObjectTypeLayout">