diff --git a/src/tools/dbusxml2qt3/methodgen.cpp b/src/tools/dbusxml2qt3/methodgen.cpp index ac3d569..89c3677 100644 --- a/src/tools/dbusxml2qt3/methodgen.cpp +++ b/src/tools/dbusxml2qt3/methodgen.cpp @@ -923,9 +923,20 @@ void MethodGenerator::writeSignalEmitter(const Class& classData, TQValueList::const_iterator endIt = method.arguments.end(); for (; it != endIt;) { - stream << "const "; + if (!(*it).isPrimitive) + { + stream << "const "; + } + stream << (*it).signature; - stream << "& " << (*it).name; + + if (!(*it).isPrimitive) + { + stream << "&"; + } + + stream << " " << (*it).name; + ++it; if (it != endIt) {