From 6c62738a9a051c4e06444c6d37c766f7ccc696c8 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 15 Sep 2021 10:04:31 +0200 Subject: shiboken6: Store the AbstractMetaArgument instead of the type in Overloaddata This makes subsequent refactorings easier. Task-number: PYSIDE-1660 Change-Id: I2ca708c2e3313c48483c8769eb186123bff5da9b Reviewed-by: Christian Tismer --- sources/shiboken6/generator/shiboken/cppgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken6/generator/shiboken/cppgenerator.cpp') diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp index eacfc681e..4fd5d4094 100644 --- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp +++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp @@ -2463,7 +2463,7 @@ void CppGenerator::writeTypeCheck(TextStream &s, for (const auto &sibling : siblings) { for (const auto &func : sibling->overloads()) { checkTypeViability(func); - const AbstractMetaType &argType = sibling->argument(func)->type(); + const AbstractMetaType &argType = sibling->overloadArgument(func)->type(); if (!argType.isPrimitive()) continue; if (ShibokenGenerator::isNumber(argType.typeEntry())) -- cgit v1.2.3