aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/cppgenerator.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-10 16:26:10 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-11 07:57:29 +0200
commitd2bff203f53120c33d79a37b170d2bacc49d67b4 (patch)
treea972cc86100a9f7546a944807b26bca6af706b00 /sources/shiboken6/generator/shiboken/cppgenerator.cpp
parentacaa0e5ce430d87eea1d76620e3b9e3584a55f86 (diff)
shiboken6: Remove unused arguments from ShibokenGenerator::cpythonIsConvertibleFunction()
Task-number: PYSIDE-1605 Change-Id: Ic94d71d0b09314d4736a77f89b66fddac15febdb Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/cppgenerator.cpp')
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index 1cda61c93..c62c5c384 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -2407,7 +2407,7 @@ void CppGenerator::writeTypeCheck(TextStream &s, AbstractMetaType argType,
// TODO-CONVERTER: merge this with the code below.
QString typeCheck;
if (customCheck.isEmpty())
- typeCheck = cpythonIsConvertibleFunction(argType, argType.isEnum() ? false : isNumber);
+ typeCheck = cpythonIsConvertibleFunction(argType);
else
typeCheck = customCheck;
typeCheck.append(u'(' +argumentName + u')');