Handle primitives in signals properly (not const)

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/22/head
Emanoil Kotsev 5 years ago committed by Michele Calgaro
parent 81cebe1f20
commit 4e267fc57b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -922,10 +922,21 @@ void MethodGenerator::writeSignalEmitter(const Class& classData,
TQValueList<Argument>::const_iterator it = method.arguments.begin();
TQValueList<Argument>::const_iterator endIt = method.arguments.end();
for (; it != endIt;)
{
if (!(*it).isPrimitive)
{
stream << "const ";
}
stream << (*it).signature;
stream << "& " << (*it).name;
if (!(*it).isPrimitive)
{
stream << "&";
}
stream << " " << (*it).name;
++it;
if (it != endIt)
{

Loading…
Cancel
Save