From a778f9f14703302132ebe13ed19f510bfa88213f Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 6 Dec 2010 13:52:44 -0300 Subject: 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. --- generator/shibokengenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'generator') 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"; -- cgit v1.2.3