From 4e267fc57b58cb68c13d25da39cde08664b7c257 Mon Sep 17 00:00:00 2001 From: Emanoil Kotsev Date: Sat, 22 Jun 2019 14:40:13 +0900 Subject: Handle primitives in signals properly (not const) Signed-off-by: Emanoil Kotsev Signed-off-by: Michele Calgaro --- src/tools/dbusxml2qt3/methodgen.cpp | 15 +++++++++++++-- 1 file 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::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) { -- cgit v1.2.3