diff options
author | Carlos Goncalves <mail@cgoncalves.info> | 2010-02-02 23:36:22 +0000 |
---|---|---|
committer | Carlos Goncalves <mail@cgoncalves.info> | 2010-02-02 23:46:11 +0000 |
commit | d942c8380c4970dd48f8b0ab44c5691e2c6836db (patch) | |
tree | 95e126fd3591dd3f3e465dd90a141c7c8da12714 /PySide | |
parent | 71e75498f4baccc70ac785e82029417e145d3188 (diff) |
Do not allow multiple arguments in read_wrapper, but one only
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtNetwork/typesystem_network.xml | 10 | ||||
-rw-r--r-- | PySide/typesystem_templates.xml | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/PySide/QtNetwork/typesystem_network.xml b/PySide/QtNetwork/typesystem_network.xml index 6a8f0643d..1024da255 100644 --- a/PySide/QtNetwork/typesystem_network.xml +++ b/PySide/QtNetwork/typesystem_network.xml @@ -108,19 +108,9 @@ <modify-argument index="return"> <replace-type modified-type="PyTuple*"/> </modify-argument> - <!-- - <modify-argument index="return"> - <replace-type modified-type="python::object" /> - </modify-argument> - --> <inject-code class="target" position="beginning"> <insert-template name="fix_args,bool*"/> </inject-code> - <!-- - <inject-code class="target" position="end"> - <insert-template name="bool*_fix_end" /> - </inject-code> - --> </modify-function> </object-type> <object-type name="QTcpSocket"/> diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml index ec88ac690..840a4ecdd 100644 --- a/PySide/typesystem_templates.xml +++ b/PySide/typesystem_templates.xml @@ -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 |