Commit e98ce1ea authored by Ghislain MARY's avatar Ghislain MARY

Some cleaning.

parent 09866072
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
std::list<Address> cleanAddressesList (const std::list<Address> &addresses) const; std::list<Address> cleanAddressesList (const std::list<Address> &addresses) const;
std::shared_ptr<CallSession> createSession (); std::shared_ptr<CallSession> createSession ();
void notifyReceived (std::string body); void notifyReceived (const std::string &body);
private: private:
L_DECLARE_PUBLIC(ClientGroupChatRoom); L_DECLARE_PUBLIC(ClientGroupChatRoom);
......
...@@ -69,7 +69,7 @@ shared_ptr<CallSession> ClientGroupChatRoomPrivate::createSession () { ...@@ -69,7 +69,7 @@ shared_ptr<CallSession> ClientGroupChatRoomPrivate::createSession () {
return session; return session;
} }
void ClientGroupChatRoomPrivate::notifyReceived (string body) { void ClientGroupChatRoomPrivate::notifyReceived (const string &body) {
L_Q_T(RemoteConference, qConference); L_Q_T(RemoteConference, qConference);
qConference->getPrivate()->eventHandler->notifyReceived(body); qConference->getPrivate()->eventHandler->notifyReceived(body);
} }
...@@ -79,11 +79,11 @@ void ClientGroupChatRoomPrivate::notifyReceived (string body) { ...@@ -79,11 +79,11 @@ void ClientGroupChatRoomPrivate::notifyReceived (string body) {
ClientGroupChatRoom::ClientGroupChatRoom ( ClientGroupChatRoom::ClientGroupChatRoom (
const std::shared_ptr<Core> &core, const std::shared_ptr<Core> &core,
const Address &me, const Address &me,
const std::string &uri, const std::string &factoryUri,
const std::string &subject const std::string &subject
) : ChatRoom(*new ClientGroupChatRoomPrivate, core, Address()), RemoteConference(core->getCCore(), me, nullptr) { ) : ChatRoom(*new ClientGroupChatRoomPrivate, core, Address()), RemoteConference(core->getCCore(), me, nullptr) {
L_D_T(RemoteConference, dConference); L_D_T(RemoteConference, dConference);
dConference->focus = make_shared<Participant>(Address(uri)); dConference->focus = make_shared<Participant>(Address(factoryUri));
RemoteConference::setSubject(subject); RemoteConference::setSubject(subject);
} }
......
...@@ -35,7 +35,7 @@ public: ...@@ -35,7 +35,7 @@ public:
ClientGroupChatRoom ( ClientGroupChatRoom (
const std::shared_ptr<Core> &core, const std::shared_ptr<Core> &core,
const Address &me, const Address &me,
const std::string &uri, const std::string &factoryUri,
const std::string &subject 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