diff options
author | Christian Tismer <tismer@stackless.com> | 2021-08-04 12:27:17 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2021-08-06 00:06:45 +0200 |
commit | a21203d534c2947a2e5f472ace3e83c552e83191 (patch) | |
tree | 99b0b5a81bfc9c885a830f36543ba97790f95b35 /sources/pyside6/libpyside/dynamicqmetaobject.cpp | |
parent | 521dc4b6dcdd7d04a9ef6afe273833016f7ba31c (diff) |
Shiboken: Remove cheating macros
There are a number of cheating macros that allow to use
the same code in Python 2 and 3. Because Python 2 is gone,
remove these macros.
This conversion was partially difficult since certain types
collapsed in the XML files and generated functions contained
substrings of the macros. This is actually the fourth attempt.
Task-number: PYSIDE-1019
Pick-to: 6.1
Change-Id: I116877afc8aa36f4710a40df1769f600b6b750ea
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/libpyside/dynamicqmetaobject.cpp')
-rw-r--r-- | sources/pyside6/libpyside/dynamicqmetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/dynamicqmetaobject.cpp b/sources/pyside6/libpyside/dynamicqmetaobject.cpp index 39be38b29..b7febf492 100644 --- a/sources/pyside6/libpyside/dynamicqmetaobject.cpp +++ b/sources/pyside6/libpyside/dynamicqmetaobject.cpp @@ -577,7 +577,7 @@ void MetaObjectBuilderPrivate::parsePythonType(PyTypeObject *type) AutoDecRef member(PySequence_GetItem(item, 1)); AutoDecRef value(PyObject_GetAttr(member, Shiboken::PyName::value())); auto ckey = String::toCString(key); - auto ivalue = PyInt_AsSsize_t(value); // int/long cheating + auto ivalue = PyLong_AsSsize_t(value); auto thing = QPair<QByteArray, int>(ckey, int(ivalue)); entries.push_back(thing); } |