summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-24 18:19:20 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-24 18:19:20 +0000
commit442ff8937564424c10a7964bf0dfb800c04e25c0 (patch)
tree74f68840ac0d19d6bd1edebbcee2e4f2b37ff05d
parente271940e6e10c4f5515efa13e3df47a138ea495b (diff)
downloaddbus-tqt-442ff893.tar.gz
dbus-tqt-442ff893.zip
Fix no return in nonvoid function errors within dbus-tqtv3.5.13
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/dbus-tqt@1249343 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--connection.cpp1
-rw-r--r--message.cpp10
2 files changed, 11 insertions, 0 deletions
diff --git a/connection.cpp b/connection.cpp
index a77da60..8333544 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -154,6 +154,7 @@ Message Connection::sendWithReplyAndBlock( const Message &m )
void* Connection::virtual_hook( int, void* )
{
+ return 0;
}
void Connection::dbus_connection_setup_with_qt_main (DBusConnection *connection)
diff --git a/message.cpp b/message.cpp
index 64c5731..ae68dc8 100644
--- a/message.cpp
+++ b/message.cpp
@@ -359,6 +359,7 @@ Message::Message( const Message& replayingTo, const TQString& errorName,
Message Message::operator=( const Message& other )
{
//FIXME: ref the other.d->msg instead of copying it?
+ return *this;
}
/**
* Destructs message.
@@ -508,42 +509,49 @@ Message& Message::operator<<( bool b )
const dbus_bool_t right_size_bool = b;
dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &right_size_bool,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( TQ_INT8 byte )
{
dbus_message_append_args( d->msg, DBUS_TYPE_BYTE, &byte,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( TQ_INT32 num )
{
dbus_message_append_args( d->msg, DBUS_TYPE_INT32, &num,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( TQ_UINT32 num )
{
dbus_message_append_args( d->msg, DBUS_TYPE_UINT32, &num,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( TQ_INT64 num )
{
dbus_message_append_args( d->msg, DBUS_TYPE_INT64, &num,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( TQ_UINT64 num )
{
dbus_message_append_args( d->msg, DBUS_TYPE_UINT64, &num,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( double num )
{
dbus_message_append_args( d->msg, DBUS_TYPE_DOUBLE, &num,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( const TQString& str )
@@ -551,11 +559,13 @@ Message& Message::operator<<( const TQString& str )
const char *u = str.utf8();
dbus_message_append_args( d->msg, DBUS_TYPE_STRING, &u,
DBUS_TYPE_INVALID );
+ return *this;
}
Message& Message::operator<<( const TQVariant& custom )
{
//FIXME: imeplement
+ return *this;
}
}