diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-03 10:58:09 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:07 -0300 |
commit | 699f6db172df37631dec7a884a25df8cc62343b8 (patch) | |
tree | ca65fab2b5b6d325f70f37d749899c0593e25916 /generator | |
parent | f9e9189be4b622b74d0df2787a09f93fe7a5d0ae (diff) |
Small visual improvements on writeArgumentNames().
Diffstat (limited to 'generator')
-rw-r--r-- | generator/shibokengenerator.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp index 3bb2d579d..05d374ea4 100644 --- a/generator/shibokengenerator.cpp +++ b/generator/shibokengenerator.cpp @@ -1072,20 +1072,17 @@ void ShibokenGenerator::writeArgumentNames(QTextStream &s, int argCount = 0; for (int j = 0, max = arguments.size(); j < max; j++) { - if ((options & Generator::SkipRemovedArguments) && - (func->argumentRemoved(arguments.at(j)->argumentIndex() +1))) + if ((options & Generator::SkipRemovedArguments) && (func->argumentRemoved(arguments.at(j)->argumentIndex()+1))) continue; - if (argCount > 0) - s << ", "; - s << arguments.at(j)->name(); + s << ((argCount > 0) ? ", " : "") << arguments.at(j)->name(); - if (((options & Generator::VirtualCall) == 0) && - (!func->conversionRule(TypeSystem::NativeCode, arguments.at(j)->argumentIndex() + 1).isEmpty() || - !func->conversionRule(TypeSystem::TargetLangCode, arguments.at(j)->argumentIndex() + 1).isEmpty()) && - !func->isConstructor() - ) + if (((options & Generator::VirtualCall) == 0) + && (!func->conversionRule(TypeSystem::NativeCode, arguments.at(j)->argumentIndex() + 1).isEmpty() + || !func->conversionRule(TypeSystem::TargetLangCode, arguments.at(j)->argumentIndex() + 1).isEmpty()) + && !func->isConstructor()) { s << "_out"; + } argCount++; } |