[telepathy-qt4/master] Account: Make sure TargetHandle is uint when contact is 0 on ensureMediaCall/TextChat.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Fri Sep 11 07:16:58 PDT 2009


---
 TelepathyQt4/account.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/account.cpp b/TelepathyQt4/account.cpp
index 236ef32..2d82469 100644
--- a/TelepathyQt4/account.cpp
+++ b/TelepathyQt4/account.cpp
@@ -758,7 +758,7 @@ PendingChannelRequest *Account::ensureTextChat(
     request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandleType"),
                    (uint) Tp::HandleTypeContact);
     request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandle"),
-                   contact ? contact->handle().at(0) : 0);
+                   contact ? contact->handle().at(0) : (uint) 0);
     return new PendingChannelRequest(dbusConnection(), objectPath(),
             request, userActionTime, preferredHandler, false, this);
 }
@@ -854,7 +854,7 @@ PendingChannelRequest *Account::ensureMediaCall(
     request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandleType"),
                    (uint) Tp::HandleTypeContact);
     request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandle"),
-                   contact ? contact->handle().at(0) : 0);
+                   contact ? contact->handle().at(0) : (uint) 0);
     return new PendingChannelRequest(dbusConnection(), objectPath(),
             request, userActionTime, preferredHandler, false, this);
 }
-- 
1.5.6.5



More information about the telepathy-commits mailing list