summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-10 17:51:40 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-02-11 15:32:12 -0300
commit7901c69c9e404e460aee9b35d0a50f24681c9152 (patch)
treeedc6b00cef25dbdde2d5e2771dd6192e9845c745
parentc167d196107f074d4f814a6bf06729effe0fa80d (diff)
downloadshiboken-7901c69c9e404e460aee9b35d0a50f24681c9152.tar.gz
shiboken-7901c69c9e404e460aee9b35d0a50f24681c9152.tar.xz
shiboken-7901c69c9e404e460aee9b35d0a50f24681c9152.zip
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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 615bd72b..a2b39655 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3932,10 +3932,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)