summaryrefslogtreecommitdiffstats
path: root/PySide/QtDeclarative/pysideqmlregistertype.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-06 11:33:59 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-10-06 15:43:31 -0300
commitd450084d0a961146326933d24ff9cd254127c2fe (patch)
tree015480608aeafe257fa4f48171e8a3be06ee2589 /PySide/QtDeclarative/pysideqmlregistertype.cpp
parent5525de20d99808f4092d9dc264d3324496e68e55 (diff)
downloadpyside-d450084d0a961146326933d24ff9cd254127c2fe.tar.gz
pyside-d450084d0a961146326933d24ff9cd254127c2fe.tar.xz
pyside-d450084d0a961146326933d24ff9cd254127c2fe.zip
Updated QtDeclarative modue to works with python 2.x and 3.x
Diffstat (limited to 'PySide/QtDeclarative/pysideqmlregistertype.cpp')
-rw-r--r--PySide/QtDeclarative/pysideqmlregistertype.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/PySide/QtDeclarative/pysideqmlregistertype.cpp b/PySide/QtDeclarative/pysideqmlregistertype.cpp
index 34fd3dd..1fc8020 100644
--- a/PySide/QtDeclarative/pysideqmlregistertype.cpp
+++ b/PySide/QtDeclarative/pysideqmlregistertype.cpp
@@ -197,12 +197,11 @@ void propListTpFree(void* self)
PySideProperty* pySelf = reinterpret_cast<PySideProperty*>(self);
delete reinterpret_cast<DeclarativeListProperty*>(PySide::Property::userData(pySelf));
// calls base type constructor
- pySelf->ob_type->tp_base->tp_free(self);
+ Py_TYPE(pySelf)->tp_base->tp_free(self);
}
PyTypeObject PropertyListType = {
- PyObject_HEAD_INIT(0)
- 0, /*ob_size*/
+ PyVarObject_HEAD_INIT(0, 0)
"ListProperty", /*tp_name*/
sizeof(PySideProperty), /*tp_basicsize*/
0, /*tp_itemsize*/