diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-05-31 12:29:52 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:26 -0300 |
commit | f957a6f42d2abf5b33bf2bd9b525731c313cc668 (patch) | |
tree | 4e5a9eeae314ccce3d269fb625147ed831a3b44e /PySide/QtCore | |
parent | c0d6e44accb302ab31694a4efa0c18c13fc997dd (diff) |
Moved internalPointer methods code injection into a code template.
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 20946454a..8795cf5f8 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -985,10 +985,7 @@ <value-type name="QPersistentModelIndex"> <modify-function signature="internalPointer()const"> <inject-code class="target" position="beginning"> - %PYARG_0 = (PyObject*)%CPPSELF.%FUNCTION_NAME(); - if (!%PYARG_0) - %PYARG_0 = Py_None; - Py_XINCREF(%PYARG_0); + <insert-template name="return_internal_pointer" /> </inject-code> </modify-function> <modify-function signature="operator const QModelIndex&()const"> @@ -2825,10 +2822,7 @@ <value-type name="QModelIndex"> <modify-function signature="internalPointer()const"> <inject-code class="target" position="beginning"> - %PYARG_0 = (PyObject*)%CPPSELF.%FUNCTION_NAME(); - if (!%PYARG_0) - %PYARG_0 = Py_None; - Py_XINCREF(%PYARG_0); + <insert-template name="return_internal_pointer" /> </inject-code> </modify-function> <modify-function signature="model()const"> |