aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-13 13:45:54 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-24 13:52:35 +0200
commit79b32f4d4b5154ba8001bafc481fb6edacc10280 (patch)
tree2ebd4470b1eef8e9cd231213901ac6ca2c454f06 /examples
parentd9bad33ad2cd0e49e22c82f8d05422274cbbf1c8 (diff)
shiboken6: Rewrite conversions
Currently, the isPythonToCpp(Value/Reference/Pointer)Convertible functions used by the overload decisor return a function pointer. In the case of isPythonToCppReferenceConvertible, this can be either a pointer conversion taking a Foo** or a value conversion taking a Foo*. The function isImplicitConversion(SbkObjectType *, PythonToCppFunc) is called further down in the generated code to check whether it is a value or a pointer. In order to get rid of this, introduce a new version of the checking function that returns a struct that has the function and knows its type. Add an overload of isPythonToCppReferenceConvertible() taking a SbkConverter for the upcoming opaque containers. Task-number: PYSIDE-1605 Change-Id: I49f70b85d01500d95208f0f2dd290bf23cb80eff Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions