diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-10 17:51:40 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:13:54 -0300 |
commit | 0c16d86214abf7d5dc8495f42a8823382b59d481 (patch) | |
tree | bf1bbb69a2c6fde3fa796c43ea7f611018190053 | |
parent | cefb9e9b58a2ff6d755d0c7949819e6bd62f83f4 (diff) |
Fixed style of code on CppGenerator::writeReturnValueHeuristics method.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | generator/cppgenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index 8e3b391b7..83dc7cbfa 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -3930,10 +3930,10 @@ void CppGenerator::writeReturnValueHeuristics(QTextStream& s, const AbstractMeta } ArgumentOwner argOwner = getArgumentOwner(func, ArgumentOwner::ReturnIndex); - if (argOwner.action == ArgumentOwner::Invalid || argOwner.index != ArgumentOwner::ThisIndex) - - if (type->isQObject() || type->isObject() || type->isValuePointer()) - s << INDENT << "Shiboken::Object::setParent(" << self << ", " PYTHON_RETURN_VAR ");" << endl; + if (argOwner.action == ArgumentOwner::Invalid || argOwner.index != ArgumentOwner::ThisIndex) { + if (type->isQObject() || type->isObject() || type->isValuePointer()) + s << INDENT << "Shiboken::Object::setParent(" << self << ", " PYTHON_RETURN_VAR ");" << endl; + } } void CppGenerator::writeHashFunction(QTextStream& s, const AbstractMetaClass* metaClass) |