diff options
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 46036bf04..8fed827d9 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -901,10 +901,9 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, code.replace("%0.", QString("%1->").arg("cptr")); code.replace("%0", "cptr"); } else if (func->type()) { - QString pyRetVal = cpythonWrapperCPtr(func->type(), pythonReturnVariableName()); if (func->type()->typeEntry()->isValue() || func->type()->typeEntry()->isObject()) - code.replace("%0.", QString("%1->").arg(pyRetVal)); - code.replace("%0", pyRetVal); + code.replace("%0.", QString("%1->").arg(cppReturnVariableName())); + code.replace("%0", cppReturnVariableName()); } // replace template variable for self Python object |