summaryrefslogtreecommitdiffstats
path: root/tqdbusmarshall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqdbusmarshall.cpp')
-rw-r--r--tqdbusmarshall.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tqdbusmarshall.cpp b/tqdbusmarshall.cpp
index f4aa5f7..7c21619 100644
--- a/tqdbusmarshall.cpp
+++ b/tqdbusmarshall.cpp
@@ -599,8 +599,11 @@ static TQT_DBusData qFetchParameter(DBusMessageIter *it)
return TQT_DBusData::fromStruct(memberList);
}
- case DBUS_TYPE_UNIX_FD:
- return TQT_DBusData::fromUnixFd(TQT_DBusUnixFd(qIterGet<dbus_uint32_t>(it)));
+ case DBUS_TYPE_UNIX_FD: {
+ TQT_DBusUnixFd unixFd;
+ unixFd.giveFileDescriptor(qIterGet<dbus_uint32_t>(it));
+ return TQT_DBusData::fromUnixFd(unixFd);
+ }
#if 0
case DBUS_TYPE_INVALID:
// TODO: check if there is better way to detect empty arrays