summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2019-06-22 14:40:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-06-22 14:40:13 +0900
commit4e267fc57b58cb68c13d25da39cde08664b7c257 (patch)
tree775f09dd0bcca8d241a39c8124dc810880352ddd
parent81cebe1f2041581a9a8b5d03bc01848df5d95055 (diff)
downloaddbus-1-tqt-4e267fc5.tar.gz
dbus-1-tqt-4e267fc5.zip
Handle primitives in signals properly (not const)
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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)
{