|
|
|
@ -923,9 +923,20 @@ void MethodGenerator::writeSignalEmitter(const Class& classData,
|
|
|
|
|
TQValueList<Argument>::const_iterator endIt = method.arguments.end();
|
|
|
|
|
for (; it != endIt;)
|
|
|
|
|
{
|
|
|
|
|
stream << "const ";
|
|
|
|
|
if (!(*it).isPrimitive && ((*it).direction == Argument::In || method.type == Method::_Signal))
|
|
|
|
|
{
|
|
|
|
|
stream << "const ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stream << (*it).signature;
|
|
|
|
|
stream << "& " << (*it).name;
|
|
|
|
|
|
|
|
|
|
if (!(*it).isPrimitive || ((*it).direction == Argument::Out && method.type != Method::_Signal))
|
|
|
|
|
{
|
|
|
|
|
stream << "&";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stream << " " << (*it).name;
|
|
|
|
|
|
|
|
|
|
++it;
|
|
|
|
|
if (it != endIt)
|
|
|
|
|
{
|
|
|
|
|