diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-04-13 16:02:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:11 -0300 |
commit | e14378b1265d622a3ed82fbfe4e42fd0a4c0f0cd (patch) | |
tree | 7324205ee50f913c82ebd7cc284c6a2cbddf781f /PySide | |
parent | 5d753e281a7f90463de36cc46caf1dd441cd4d62 (diff) |
Fix inject code of QByteArray::fromRawData.
The QByteArray returned must share, nto copy, the string contents.
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 6aaded3af..ca36ba518 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1691,8 +1691,7 @@ <remove-argument /> </modify-argument> <inject-code class="target"> - // %FUNCTION_NAME() - avoid generation of default function call - %PYARG_0 = %CONVERTTOPYTHON[QByteArray](QByteArray(%1)); + %PYARG_0 = %CONVERTTOPYTHON[QByteArray](%CPPSELF.%FUNCTION_NAME(PyString_AS_STRING(%PYARG_1), PyString_GET_SIZE(%PYARG_1))); </inject-code> </modify-function> <modify-function signature="toDouble(bool*)const"> |