Do not allow multiple arguments in read_wrapper, but one only
This commit is contained in:
parent
71e75498f4
commit
d942c8380c
2 changed files with 2 additions and 12 deletions
|
|
@ -66,8 +66,8 @@
|
|||
</template>
|
||||
|
||||
<template name="read_wrapper">
|
||||
char _data[%ARGUMENT_NAMES];
|
||||
qint64 _size = %CPPSELF.%FUNCTION_NAME(_data, %ARGUMENT_NAMES);
|
||||
char _data[%2];
|
||||
qint64 _size = %CPPSELF.%FUNCTION_NAME(_data, %2);
|
||||
if (_size > 0)
|
||||
return %CONVERTTOPYTHON[QByteArray](QByteArray(_data, _size));
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue