diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-15 17:08:10 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-15 20:12:25 -0300 |
commit | de5187268ab7dd96fc5fa98c583086fc5afe5b48 (patch) | |
tree | 3133e53190794f837a55434a51043fbf23670616 /shibokengenerator.cpp | |
parent | 72ca828dde351cc3b715eec5447fe4ea5c46ec01 (diff) |
Updated type system variable replacement for '%0' (aka C++ return value).
Now the variable is replaced by a C++ return variable instead of
getting the value directly from the PyObject.
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 |