From 151111bde2fcf7ab182495da16b3799fa2edf123 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 1 Aug 2011 13:12:49 -0300 Subject: Replaced hard coded variables by type system variables in QtCore and QtGui. --- PySide/QtCore/typesystem_core.xml | 10 +++++----- PySide/QtGui/typesystem_gui_common.xml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 93e42ee14..6ca205aea 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1664,7 +1664,7 @@ - Shiboken::AutoDecRef str(PyUnicode_AsASCIIString(arg)); + Shiboken::AutoDecRef str(PyUnicode_AsASCIIString(%PYARG_1)); if (!str.isNull()) { QByteArray b(PyString_AS_STRING(str.object()), PyString_GET_SIZE(str.object())); b.prepend(*%CPPSELF); @@ -1674,7 +1674,7 @@ - Shiboken::AutoDecRef str(PyUnicode_AsASCIIString(arg)); + Shiboken::AutoDecRef str(PyUnicode_AsASCIIString(%PYARG_1)); if (!str.isNull()) { QByteArray b(PyString_AS_STRING(str.object()), PyString_GET_SIZE(str.object())); b.append(*%CPPSELF); @@ -1684,7 +1684,7 @@ - QByteArray b(PyString_AS_STRING(arg), PyString_GET_SIZE(arg)); + QByteArray b(PyString_AS_STRING(%PYARG_1), PyString_GET_SIZE(%PYARG_1)); %PYARG_0 = %CONVERTTOPYTHON[QByteArray](b + *%CPPSELF); @@ -1712,7 +1712,7 @@ - int size = PyString_GET_SIZE(pyargs[0]); + int size = PyString_GET_SIZE(%PYARG_1); %0 = new QByteArray(%1, size); @@ -2244,7 +2244,7 @@ const_cast<char*>("OsO"), pyTimer, SIGNAL(timeout()), - pyargs[1]) + %PYARG_2) ); } diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 69929e808..279670898 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -562,7 +562,7 @@ Py_ssize_t bufferLen; - char* %out = (char*) Shiboken::Buffer::getPointer(arg, &bufferLen); + char* %out = (char*) Shiboken::Buffer::getPointer(%PYARG_1, &bufferLen); -- cgit v1.2.3