##// END OF EJS Templates
moved return value creation AFTER the successful check of the call parameters, otherwise the return value allocation is done for nothing...
moved return value creation AFTER the successful check of the call parameters, otherwise the return value allocation is done for nothing git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@81 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r10:21d959e02207
r45:73b37bcd54f9
Show More
typesystem_xml-qtscript.xml
40 lines | 1.5 KiB | application/xml | XmlLexer
/ generator / typesystem_xml-qtscript.xml
<?xml version="1.0"?>
<typesystem package="com.trolltech.qt.xml">
<!-- ### value type without copy constructor -->
<rejection class="QXmlNamespaceSupport"/>
<value-type name="QDomNode">
<modify-function signature="save(QTextStream&amp;,int)const">
<modify-argument index="1">
<replace-type modified-type="QTextStream*"/>
<conversion-rule class="native">
QTextStream &amp; %out% = *qscriptvalue_cast&lt;QTextStream*&gt;(%in%);
</conversion-rule>
</modify-argument>
</modify-function>
<modify-function signature="save(QTextStream&amp;,int,QDomNode::EncodingPolicy)const">
<modify-argument index="1">
<replace-type modified-type="QTextStream*"/>
<conversion-rule class="native">
QTextStream &amp; %out% = *qscriptvalue_cast&lt;QTextStream*&gt;(%in%);
</conversion-rule>
</modify-argument>
</modify-function>
</value-type>
<object-type name="QXmlReader">
<modify-function signature="feature(QString,bool*)const">
<modify-argument index="2">
<remove-argument/>
</modify-argument>
</modify-function>
<modify-function signature="property(QString,bool*)const">
<modify-argument index="2">
<remove-argument/>
</modify-argument>
</modify-function>
</object-type>
</typesystem>