aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PySide/QtCore/typesystem_core.xml4
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>