summaryrefslogtreecommitdiffstats
path: root/src/tools/dbusxml2qt3/methodgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/dbusxml2qt3/methodgen.cpp')
-rw-r--r--src/tools/dbusxml2qt3/methodgen.cpp15
1 files changed, 13 insertions, 2 deletions
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<Argument>::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)
{