Commit e98ce1ea authored by Ghislain MARY's avatar Ghislain MARY

Some cleaning.

parent 09866072
......@@ -33,7 +33,7 @@ public:
std::list<Address> cleanAddressesList (const std::list<Address> &addresses) const;
std::shared_ptr<CallSession> createSession ();
void notifyReceived (std::string body);
void notifyReceived (const std::string &body);
private:
L_DECLARE_PUBLIC(ClientGroupChatRoom);
......
......@@ -69,7 +69,7 @@ shared_ptr<CallSession> 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> &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<Participant>(Address(uri));
dConference->focus = make_shared<Participant>(Address(factoryUri));
RemoteConference::setSubject(subject);
}
......
......@@ -35,7 +35,7 @@ public:
ClientGroupChatRoom (
const std::shared_ptr<Core> &core,
const Address &me,
const std::string &uri,
const std::string &factoryUri,
const std::string &subject
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment