Some cleaning.

This commit is contained in:
Ghislain MARY 2017-11-10 15:27:54 +01:00
parent 098660726f
commit e98ce1ea4a
3 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -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
);