summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-09-17 20:13:58 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-20 14:13:25 -0300
commit2b8f4f3d19256f306be1c354eb62a7b367926d43 (patch)
treee27ad0a886b96053e8a35d5a41934fe6cc4ea510 /tests/samplebinding/typesystem_sample.xml
parent42a3b42f8a00e94dd10e786210739fee7878cf51 (diff)
downloadshiboken-2b8f4f3d19256f306be1c354eb62a7b367926d43.tar.gz
shiboken-2b8f4f3d19256f306be1c354eb62a7b367926d43.tar.xz
shiboken-2b8f4f3d19256f306be1c354eb62a7b367926d43.zip
Fix OverloadData::isSingleArgument
Now returning true *only* when exactly all overloads accept exactly 1 argument. Fixes compilation of QAudioInput and QAudioOutput from QtMultimedia. Both have start() and start(QIODevice*) overloads, and the previous code was generating 'arg' instead of 'pyargs'. Reviewer: Renato Ara├║jo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 40b70ab4..4f98dff4 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -978,6 +978,11 @@
%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME(%1, 2, %3));
</inject-code>
</modify-function>
+ <modify-function signature="singleOverload(Point*)">
+ <modify-argument index="1">
+ <define-ownership owner="c++"/>
+ </modify-argument>
+ </modify-function>
</value-type>
<object-type name="Collector" stream="yes"/>