diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-12-06 13:52:44 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:08 -0300 |
commit | a778f9f14703302132ebe13ed19f510bfa88213f (patch) | |
tree | ca2dc67a84170f2ae10e01108e50305b3de04bde /generator | |
parent | 5c6adf14244f2ba0d7d5f42cc76dbd9959ae624b (diff) |
Generator now writes the proper variable name on C++ constructor calls.
When a conversion rule is provided for a constructor argument the C++
constructor, for which the conversion rule doesn't apply, is generated
with wrong argument names. This commit solves this.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/shibokengenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp index b064573d9..8be8964e8 100644 --- a/generator/shibokengenerator.cpp +++ b/generator/shibokengenerator.cpp @@ -1013,7 +1013,8 @@ void ShibokenGenerator::writeArgumentNames(QTextStream &s, 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->conversionRule(TypeSystem::TargetLangCode, arguments.at(j)->argumentIndex() + 1).isEmpty()) && + !func->isConstructor() ) s << "_out"; |