diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-11 17:57:46 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:58 -0300 |
commit | ab78a6601e67d8bf2121c09fbd22e61032c38f04 (patch) | |
tree | 6dbb315d1471638b6db07fa169436ca10b431167 /generator | |
parent | de64d27687365c0114853a64b76939a7a611bb28 (diff) |
Do not generate return type check when the return type was modified to PyObject.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index 68f90ce06..dbe5479d2 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -654,7 +654,7 @@ void CppGenerator::writeVirtualMethodNative(QTextStream &s, const AbstractMetaFu if (invalidateReturn) s << INDENT << "bool invalidadeArg0 = " PYTHON_RETURN_VAR "->ob_refcnt == 1;" << endl; - if (func->type()) { + if (func->type() && func->typeReplaced(0) != "PyObject") { s << INDENT << "// Check return type" << endl; s << INDENT << "bool typeIsValid = "; QString desiredType; |