diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-14 09:47:44 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-14 11:04:42 +0200 |
| commit | 87bce5e6bb10ed04a124c628e4794bfdb24d448b (patch) | |
| tree | 2fd0cf7afa5ab2118f03abc6acec092bbf4e4d20 /sources/pyside6/doc/tutorials/basictutorial | |
| parent | e55c87131a66e1cd11b13663b66582412cd38788 (diff) | |
Fix build for non-limited API
e55c87131a66e1cd11b13663b66582412cd38788 broke the build
for the non-limited API due to removing a C-style cast from
a code snippet:
%0 = PyBytes_GET_SIZE((PyObject *)%PYARG_0);
in the overridden method of a C++ wrapper class.
PyBytes_GET_SIZE(op) is defined to use PyVarObject*)(op)),
which does not work when passing an AutoDecRef instance
which is used for pyResult in that case.
To fix this, make the placeholder a smarter; append
.object() unless the code snippet invokes a member
function itself.
[ChangeLog][shiboken6] The replacement of %PYARG_0 in
C++ wrapper classes (native) has been improved and no
longer requires adding casts to PyObject *.
Change-Id: Ia31b28d568603f96c93e564e5ef7554cb2468b04
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial')
0 files changed, 0 insertions, 0 deletions
