diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-01-13 17:51:14 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:51:46 -0300 |
commit | b57192c596230ef8fb6a9cb1fe51d3a72e719e4f (patch) | |
tree | bea1eb3f14e3b76101529cffc48683de9b352de9 /PySide/typesystem_templates.xml | |
parent | d9940e55a41b83d30ce41e8002f614bfe16d54bf (diff) |
Fix bug#584 - "python pickle module can't treat QByteArray object of PySide"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r-- | PySide/typesystem_templates.xml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml index 4604fda95..dd07459ad 100644 --- a/PySide/typesystem_templates.xml +++ b/PySide/typesystem_templates.xml @@ -188,10 +188,7 @@ </template> <!-- templates for __reduce__ --> <template name="reduce_code"> - PyObject *type = PyObject_Type(%PYSELF); - PyObject *args = NULL; - args = Py_BuildValue("%REDUCE_FORMAT", %REDUCE_ARGS); - %PYARG_0 = Py_BuildValue("(NN)", type, args); + %PYARG_0 = Py_BuildValue("(N(%REDUCE_FORMAT))", PyObject_Type(%PYSELF), %REDUCE_ARGS); </template> <template name="reduce_code_matrix"> QList< %MATRIX_TYPE > cppArgs; |