From 4475f30d7a8dc0266b9a26a4dbde188838a1f0e1 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 3 Feb 2011 18:22:21 -0200 Subject: Use PyString_GET_SIZE instead of PyString_Size on some inject codes. --- PySide/QtCore/typesystem_core.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 1cde8b392..b688cd8f0 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1503,7 +1503,7 @@ - int size = PyString_Size(pyargs[0]); + int size = PyString_GET_SIZE(pyargs[0]); %0 = new QByteArray(%1, size); @@ -2354,7 +2354,7 @@ - int r = %CPPSELF.%FUNCTION_NAME(%1, PyString_Size(%PYARG_1)); + int r = %CPPSELF.%FUNCTION_NAME(%1, PyString_GET_SIZE(%PYARG_1)); %PYARG_0 = %CONVERTTOPYTHON[int](r); -- cgit v1.2.3