diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2019-06-22 14:40:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-22 14:40:13 +0900 |
commit | 4e267fc57b58cb68c13d25da39cde08664b7c257 (patch) | |
tree | 775f09dd0bcca8d241a39c8124dc810880352ddd | |
parent | 81cebe1f2041581a9a8b5d03bc01848df5d95055 (diff) | |
download | dbus-1-tqt-4e267fc57b58cb68c13d25da39cde08664b7c257.tar.gz dbus-1-tqt-4e267fc57b58cb68c13d25da39cde08664b7c257.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.cpp | 15 |
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) { |