aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2022-01-17 14:37:35 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-02-03 10:04:11 +0100
commit87bd0af43989280c460016451cbef3f9a8166908 (patch)
tree3c282b89d762d0e60317dadd733da68f8c23f583 /sources/shiboken6/tests/samplebinding
parent15f721269567411ea532a2081b91c15d47c227d1 (diff)
Cleanup and Augment Built-in Containers Usages
Since patch 380007 the std containers std::list/std::vector/std::pair/ std::map/std::unordered_map are built-in. They don't have to be explicitly mentioned using <container-type /> in typesystem files unless they are opaque containers. This patch is a general cleanup where <container-type /> is removed in typesystem files for std containers. The documentation has also been updated mentioning the built-in property for std containers. Change-Id: I4ae99bc6e231937f95039541e6c4b118351f2b84 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding')
-rw-r--r--sources/shiboken6/tests/samplebinding/typesystem_sample.xml13
1 files changed, 0 insertions, 13 deletions
diff --git a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
index 7d463b3a5..8891efdf6 100644
--- a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
+++ b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
@@ -347,19 +347,6 @@
</inject-code>
</add-function>
- <container-type name="std::pair" type="pair">
- <include file-name="utility" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="shiboken_conversion_cpppair_to_pytuple"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="shiboken_conversion_pysequence_to_cpppair"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
<template name="cpp_indexed_list_to_pylist_conversion">
PyObject *%out = PyList_New(Py_ssize_t(%in.size()));
Py_ssize_t idx = 0;