diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 9f1600a..a739050 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -433,7 +433,7 @@ - + @@ -451,7 +451,7 @@ - + @@ -504,7 +504,7 @@ - + @@ -569,7 +569,7 @@ - + @@ -581,7 +581,7 @@ - + @@ -593,7 +593,7 @@ - + @@ -612,7 +612,7 @@ - + @@ -624,7 +624,7 @@ - + @@ -689,7 +689,7 @@ - + @@ -743,7 +743,7 @@ - + @@ -762,7 +762,7 @@ - + @@ -775,7 +775,7 @@ - + @@ -795,7 +795,7 @@ - + @@ -1224,7 +1224,7 @@ - + @@ -1239,7 +1239,7 @@ - + @@ -1288,7 +1288,7 @@ - + @@ -1301,8 +1301,8 @@ - - + + diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index e6dabc4..50247c3 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -499,14 +499,14 @@ - PyObject *points = PyList_New(%CPPSELF.count()); - for (int i = 0; i < %CPPSELF.count(); ++i){ + PyObject* points = PyList_New(%CPPSELF.count()); + for (int i = 0, max = %CPPSELF.count(); i < max; ++i){ int x, y; %CPPSELF.point(i, &x, &y); PyList_SET_ITEM(points, i, %CONVERTTOPYTHON[QPoint](QPoint(x, y))); } - + diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml index 4604fda..dd07459 100644 --- a/PySide/typesystem_templates.xml +++ b/PySide/typesystem_templates.xml @@ -188,10 +188,7 @@