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