From 1b4094837f983d6273a81daffc5bbffedc82cf2c Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Tue, 27 Jul 2010 10:07:18 -0300 Subject: Fix char* converter Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira Luciano Wolf --- tests/samplebinding/typesystem_sample.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/samplebinding/typesystem_sample.xml') diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 29e9e601d..77e5052e2 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -10,6 +10,7 @@ + @@ -754,11 +755,10 @@ - Shiboken::AutoDecRef __object__(PyList_New(count)); + PyObject *%out = PyList_New(count); for (int i=0; i < count; i++) { - PyList_SET_ITEM(__object__.object(), i, %CONVERTTOPYTHON[int](%in[i])); + PyList_SET_ITEM(%out, i, %CONVERTTOPYTHON[int](%in[i])); } - PyObject *%out = __object__.object(); -- cgit v1.2.3