don't ask
[quassel.git] / src / client / client.cpp
index 1cd8939..8cc0682 100644 (file)
@@ -81,7 +81,7 @@ void Client::init() {
 
   SignalProxy *p = signalProxy();
 
-  p->attachSlot(SIGNAL(displayMsg(Message &)), this, SLOT(recvMessage(Message &)));
+  p->attachSlot(SIGNAL(displayMsg(const Message &)), this, SLOT(recvMessage(const Message &)));
   p->attachSlot(SIGNAL(displayStatusMsg(QString, QString)), this, SLOT(recvStatusMsg(QString, QString)));
 
   p->attachSlot(SIGNAL(backlogData(BufferInfo, const QVariantList &, bool)), this, SLOT(recvBacklogData(BufferInfo, const QVariantList &, bool)));
@@ -379,7 +379,8 @@ void Client::networkDestroyed() {
   }
 }
 
-void Client::recvMessage(Message &msg) {
+void Client::recvMessage(const Message &message) {
+  Message msg = message;
   Buffer *b;
   
   if(msg.type() == Message::Error) {