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/pysidesignal.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/pysidesignal.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/pysidesignal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/pysidesignal.cpp b/sources/pyside6/libpyside/pysidesignal.cpp index 29a0baa5f..95acb1bad 100644 --- a/sources/pyside6/libpyside/pysidesignal.cpp +++ b/sources/pyside6/libpyside/pysidesignal.cpp @@ -784,7 +784,7 @@ QByteArray getTypeName(PyObject *type) auto objType = reinterpret_cast<PyTypeObject *>(type); if (Shiboken::String::checkType(objType)) return QByteArrayLiteral("QString"); - if (objType == &PyInt_Type) + if (objType == &PyLong_Type) return QByteArrayLiteral("int"); if (objType == &PyLong_Type) return QByteArrayLiteral("long"); |
