From e98ce1ea4a445d680fb4f5e16560b1cf96689e78 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 10 Nov 2017 15:27:54 +0100 Subject: [PATCH] Some cleaning. --- src/chat/chat-room/client-group-chat-room-p.h | 2 +- src/chat/chat-room/client-group-chat-room.cpp | 6 +++--- src/chat/chat-room/client-group-chat-room.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 39b8313b3..72ffd2206 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 662a7b36e..2c801a177 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 8b4ae10c0..709684167 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 ); -- GitLab