diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-02-03 18:22:21 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:53:53 -0300 |
commit | 4475f30d7a8dc0266b9a26a4dbde188838a1f0e1 (patch) | |
tree | edc740e5fd77596543dc45f6bfe5eb09a8f1514b | |
parent | 8994866ef2eaf36f2f21fe93d61c66097a27b29e (diff) |
Use PyString_GET_SIZE instead of PyString_Size on some inject codes.
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 4 |
1 files 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 @@ <modify-function signature="QByteArray(const char *)"> <!-- Keep \x00 bytes passed in python strings --> <inject-code class="target" position="beginning"> - int size = PyString_Size(pyargs[0]); + int size = PyString_GET_SIZE(pyargs[0]); %0 = new QByteArray(%1, size); </inject-code> </modify-function> @@ -2354,7 +2354,7 @@ <remove-argument /> </modify-argument> <inject-code class="target"> - 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); </inject-code> </modify-function> |