diff --git a/src/chat/chat-room/client-group-chat-room-p.h b/src/chat/chat-room/client-group-chat-room-p.h
index 39b8313b3fefe112132c70fb65831ea309cefa33..72ffd2206fff9682a98b0e9e9a26e80066c221fe 100644
--- a/src/chat/chat-room/client-group-chat-room-p.h
+++ b/src/chat/chat-room/client-group-chat-room-p.h
@@ -33,7 +33,7 @@ public:
std::list
cleanAddressesList (const std::list &addresses) const;
std::shared_ptr createSession ();
- void notifyReceived (std::string body);
+ void notifyReceived (const std::string &body);
private:
L_DECLARE_PUBLIC(ClientGroupChatRoom);
diff --git a/src/chat/chat-room/client-group-chat-room.cpp b/src/chat/chat-room/client-group-chat-room.cpp
index 662a7b36e353f05ef4b8c85962595862dcd84ac0..2c801a1778568cdf4b1df1c7e8459ef7ef06e032 100644
--- a/src/chat/chat-room/client-group-chat-room.cpp
+++ b/src/chat/chat-room/client-group-chat-room.cpp
@@ -69,7 +69,7 @@ shared_ptr ClientGroupChatRoomPrivate::createSession () {
return session;
}
-void ClientGroupChatRoomPrivate::notifyReceived (string body) {
+void ClientGroupChatRoomPrivate::notifyReceived (const string &body) {
L_Q_T(RemoteConference, qConference);
qConference->getPrivate()->eventHandler->notifyReceived(body);
}
@@ -79,11 +79,11 @@ void ClientGroupChatRoomPrivate::notifyReceived (string body) {
ClientGroupChatRoom::ClientGroupChatRoom (
const std::shared_ptr &core,
const Address &me,
- const std::string &uri,
+ const std::string &factoryUri,
const std::string &subject
) : ChatRoom(*new ClientGroupChatRoomPrivate, core, Address()), RemoteConference(core->getCCore(), me, nullptr) {
L_D_T(RemoteConference, dConference);
- dConference->focus = make_shared(Address(uri));
+ dConference->focus = make_shared(Address(factoryUri));
RemoteConference::setSubject(subject);
}
diff --git a/src/chat/chat-room/client-group-chat-room.h b/src/chat/chat-room/client-group-chat-room.h
index 8b4ae10c09176c231256c1b8c193fe3effa987fe..7096841673b5e75bbca5b67ebd251a2e7543f6ca 100644
--- a/src/chat/chat-room/client-group-chat-room.h
+++ b/src/chat/chat-room/client-group-chat-room.h
@@ -35,7 +35,7 @@ public:
ClientGroupChatRoom (
const std::shared_ptr &core,
const Address &me,
- const std::string &uri,
+ const std::string &factoryUri,
const std::string &subject
);