dbus/qt message.cpp,1.11,1.12
Havoc Pennington
hp@freedesktop.org
Mon Jan 17 11:49:54 PST 2005
Update of /cvs/dbus/dbus/qt
In directory gabe:/tmp/cvs-serv16881/qt
Modified Files:
message.cpp
Log Message:
2005-01-17 Havoc Pennington <hp@redhat.com>
* dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits
* Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead
of an 8-bit type. Now dbus_bool_t is the type to use whenever you
are marshaling/unmarshaling a boolean.
Index: message.cpp
===================================================================
RCS file: /cvs/dbus/dbus/qt/message.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- message.cpp 16 Jan 2005 15:51:55 -0000 1.11
+++ message.cpp 17 Jan 2005 19:49:52 -0000 1.12
@@ -505,8 +505,8 @@
Message& Message::operator<<( bool b )
{
- const unsigned char byte = b;
- dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &byte,
+ const dbus_bool_t right_size_bool = b;
+ dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &right_size_bool,
DBUS_TYPE_INVALID );
}
More information about the dbus-commit
mailing list