aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/pytypenames.h
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-08-04 12:27:17 +0200
committerChristian Tismer <tismer@stackless.com>2021-08-12 08:56:52 +0200
commit4e8bf7c94fdf253c5cc1448971b209793c6077d1 (patch)
treedf2f88b2543640ab125a0f01a1dd970e4d4edf9d /sources/shiboken6/generator/shiboken/pytypenames.h
parent21a160203c68a165a6f6923d238300587e5fc921 (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 Change-Id: I116877afc8aa36f4710a40df1769f600b6b750ea Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit a21203d534c2947a2e5f472ace3e83c552e83191) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/pytypenames.h')
-rw-r--r--sources/shiboken6/generator/shiboken/pytypenames.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/pytypenames.h b/sources/shiboken6/generator/shiboken/pytypenames.h
index 779f67f2f..d3b1fdbe9 100644
--- a/sources/shiboken6/generator/shiboken/pytypenames.h
+++ b/sources/shiboken6/generator/shiboken/pytypenames.h
@@ -33,7 +33,7 @@
static inline QString pyBoolT() { return QStringLiteral("PyBool"); }
static inline QString pyFloatT() { return QStringLiteral("PyFloat"); }
-static inline QString pyIntT() { return QStringLiteral("PyInt"); }
+static inline QString pyIntT() { return QStringLiteral("PyLong"); }
static inline QString pyLongT() { return QStringLiteral("PyLong"); }
static inline QString pyObjectT() { return QStringLiteral("object"); }
static inline QString pyStrT() { return QStringLiteral("str"); }