diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-11 14:04:06 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-11 14:16:46 -0200 |
commit | 7013bd760e1ad46b31c019e0a11df504d6e2563e (patch) | |
tree | 133d4942b58deeaae1fcb2057604e72763d75c51 /PySide/QtCore | |
parent | 2a4ee1675dd798d5a50363fb073e6801d45a8d17 (diff) |
Fix bug#455 - "QByteArray.data() cuts data to first '\x00' char"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index f5216073f..e542ea693 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1437,6 +1437,12 @@ #endif </inject-code> + <modify-function signature="data()const"> + <inject-code class="target" position="beginning"> + %PYARG_0 = PyString_FromStringAndSize(%CPPSELF.%FUNCTION_NAME(), %CPPSELF.size()); + </inject-code> + </modify-function> + <!-- removed functions --> <modify-function signature="begin()" remove="all"/> <modify-function signature="begin()const" remove="all"/> |