diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 15:25:13 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 15:26:54 -0300 |
commit | ae513bfa93f194acb7ed7e358ae65812e2f4c214 (patch) | |
tree | 986a69549302c77827c3dd78f925e6af1867158c /shibokengenerator.cpp | |
parent | f8e64fa28917dfd7446f8710ec2a1a33ef06cebc (diff) |
Common variable names are stored as #defines instead of C++ static methods.
Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 8fed827d9..2caef7733 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -862,7 +862,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, if (func) { // replace %PYARG_# variables - code.replace("%PYARG_0", pythonReturnVariableName()); + code.replace("%PYARG_0", PYTHON_RETURN_VAR); if (snip.language == TypeSystem::TargetLangCode) { if (numArgs > 1) { code.replace(pyArgsRegex, "pyargs[\\1-1]"); @@ -902,8 +902,8 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, code.replace("%0", "cptr"); } else if (func->type()) { if (func->type()->typeEntry()->isValue() || func->type()->typeEntry()->isObject()) - code.replace("%0.", QString("%1->").arg(cppReturnVariableName())); - code.replace("%0", cppReturnVariableName()); + code.replace("%0.", QString("%1->").arg(CPP_RETURN_VAR)); + code.replace("%0", CPP_RETURN_VAR); } // replace template variable for self Python object |