summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-11 17:57:46 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-11 17:57:46 -0200
commitd5bcf44bc644ed5c5fc983c454b2e4743cf4532f (patch)
tree232301a57c10c9ffbeb47d91f981f14aa9da9853 /generator
parented83e5ef62ad4ba04aea50ba1bd10ec4684fd07c (diff)
downloadshiboken-d5bcf44bc644ed5c5fc983c454b2e4743cf4532f.tar.gz
shiboken-d5bcf44bc644ed5c5fc983c454b2e4743cf4532f.tar.xz
shiboken-d5bcf44bc644ed5c5fc983c454b2e4743cf4532f.zip
Do not generate return type check when the return type was modified to PyObject.
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 68f90ce0..dbe5479d 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;