[Telepathy-commits] [telepathy-qt4/master] Make Message private stuff actually private, and befriend ReceivedMessage

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


ReceivedMessage and Message are implemented together, and share a private
data structure, so having ReceivedMessage be a friend of Message seems
reasonable.
---
 TelepathyQt4/Client/message.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/Client/message.h b/TelepathyQt4/Client/message.h
index 6d3b98e..2a65467 100644
--- a/TelepathyQt4/Client/message.h
+++ b/TelepathyQt4/Client/message.h
@@ -65,8 +65,9 @@ public:
     int size() const;
     MessagePart part(uint index) const;
 
-protected:
+private:
     friend class TextChannel;
+    friend class ReceivedMessage;
 
     Message();
     Message(const MessagePartList &parts);
-- 
1.5.6.5




More information about the telepathy-commits mailing list