[Telepathy-commits] [telepathy-qt4/master] ReceivedMessage: change ctor to not take the sender as a parameter

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Feb 20 04:11:04 PST 2009


We don't immediately have a Contact object for the sender, so we have to
add it later.
---
 TelepathyQt4/Client/text-channel.cpp |    3 +--
 TelepathyQt4/Client/text-channel.h   |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/TelepathyQt4/Client/text-channel.cpp b/TelepathyQt4/Client/text-channel.cpp
index 2f520db..b4253ac 100644
--- a/TelepathyQt4/Client/text-channel.cpp
+++ b/TelepathyQt4/Client/text-channel.cpp
@@ -412,7 +412,7 @@ ReceivedMessage::ReceivedMessage()
  *              specification. This list must have length at least 1.
  */
 ReceivedMessage::ReceivedMessage(const MessagePartList &parts,
-        const TextChannel *channel, QSharedPointer<Contact> sender)
+        const TextChannel *channel)
     : Message(parts)
 {
     if (!mPriv->parts[0].contains(QLatin1String("message-received"))) {
@@ -421,7 +421,6 @@ ReceivedMessage::ReceivedMessage(const MessagePartList &parts,
                         QDateTime::currentDateTime().toTime_t())));
     }
     mPriv->textChannel = channel;
-    mPriv->sender = sender;
 }
 
 /**
diff --git a/TelepathyQt4/Client/text-channel.h b/TelepathyQt4/Client/text-channel.h
index 479b5f3..bb86927 100644
--- a/TelepathyQt4/Client/text-channel.h
+++ b/TelepathyQt4/Client/text-channel.h
@@ -94,8 +94,7 @@ public:
 
 private:
     friend class TextChannel;
-    ReceivedMessage(const MessagePartList &parts, const TextChannel *channel,
-            QSharedPointer<Contact> sender);
+    ReceivedMessage(const MessagePartList &parts, const TextChannel *channel);
     ReceivedMessage();
 };
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list