summaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 6ff6dd4a..52b74517 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -700,7 +700,9 @@ void CppGenerator::writeTypeCheck(QTextStream& s, const OverloadData* overloadDa
if (isPairContainer)
s << '(';
- if (argType->typeEntry()->isFlags())
+ if (overloadData->hasArgumentTypeReplace()) {
+ s << overloadData->argumentTypeReplaced() << "_Check";
+ } else if (argType->typeEntry()->isFlags())
s << cpythonCheckFunction(((FlagsTypeEntry*) argType->typeEntry())->originator(), true);
else if (argType->isEnum())
s << cpythonCheckFunction(argType, false, true);