[Telepathy-commits] [telepathy-qt4/master] TextChannel: Use ContactPtr typedef.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Mar 18 10:37:08 PDT 2009


---
 TelepathyQt4/Client/text-channel.cpp |    6 +++---
 TelepathyQt4/Client/text-channel.h   |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/TelepathyQt4/Client/text-channel.cpp b/TelepathyQt4/Client/text-channel.cpp
index 48b6e68..4a534e4 100644
--- a/TelepathyQt4/Client/text-channel.cpp
+++ b/TelepathyQt4/Client/text-channel.cpp
@@ -144,7 +144,7 @@ struct TextChannel::Private
     QSet<uint> awaitingContacts;
     QHash<QDBusPendingCallWatcher *, UIntList> acknowledgeBatches;
     void contactLost(uint handle);
-    void contactFound(QSharedPointer<Contact> contact);
+    void contactFound(ContactPtr contact);
 };
 
 TextChannel::Private::Private(TextChannel *parent)
@@ -756,7 +756,7 @@ void TextChannel::Private::contactLost(uint handle)
     }
 }
 
-void TextChannel::Private::contactFound(QSharedPointer<Contact> contact)
+void TextChannel::Private::contactFound(ContactPtr contact)
 {
     uint handle = contact->handle().at(0);
 
@@ -786,7 +786,7 @@ void TextChannel::onContactsFinished(PendingOperation *op)
             mPriv->contactLost(handle);
         }
     } else {
-        foreach (const QSharedPointer<Contact> &contact, pc->contacts()) {
+        foreach (const ContactPtr &contact, pc->contacts()) {
             mPriv->contactFound(contact);
         }
         foreach (uint handle, pc->invalidHandles()) {
diff --git a/TelepathyQt4/Client/text-channel.h b/TelepathyQt4/Client/text-channel.h
index 43a5eca..07c6093 100644
--- a/TelepathyQt4/Client/text-channel.h
+++ b/TelepathyQt4/Client/text-channel.h
@@ -98,7 +98,7 @@ public Q_SLOTS:
     PendingSendMessage *send(const MessagePartList &parts);
 
     inline PendingOperation *inviteContacts(
-            const QList<QSharedPointer<Contact> > &contacts,
+            const QList<ContactPtr> &contacts,
             const QString &message = QString())
     {
         return groupAddContacts(contacts, message);
-- 
1.5.6.5




More information about the telepathy-commits mailing list