Fix inject code of QByteArray::fromRawData.
The QByteArray returned must share, nto copy, the string contents.
This commit is contained in:
parent
2400157808
commit
a230b243d0
1 changed files with 1 additions and 2 deletions
|
|
@ -1699,8 +1699,7 @@
|
||||||
<remove-argument />
|
<remove-argument />
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<inject-code class="target">
|
<inject-code class="target">
|
||||||
// %FUNCTION_NAME() - avoid generation of default function call
|
%PYARG_0 = %CONVERTTOPYTHON[QByteArray](%CPPSELF.%FUNCTION_NAME(PyString_AS_STRING(%PYARG_1), PyString_GET_SIZE(%PYARG_1)));
|
||||||
%PYARG_0 = %CONVERTTOPYTHON[QByteArray](QByteArray(%1));
|
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
<modify-function signature="toDouble(bool*)const">
|
<modify-function signature="toDouble(bool*)const">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue