diff --git a/src/chat/client-group-chat-room.cpp b/src/chat/client-group-chat-room.cpp index 3e9302005..9e4bace9c 100644 --- a/src/chat/client-group-chat-room.cpp +++ b/src/chat/client-group-chat-room.cpp @@ -39,14 +39,14 @@ ClientGroupChatRoomPrivate::ClientGroupChatRoomPrivate (LinphoneCore *core) ClientGroupChatRoom::ClientGroupChatRoom (LinphoneCore *core, const Address &me, const string &subject) : ChatRoom(*new ClientGroupChatRoomPrivate(core)), RemoteConference(core, me, nullptr) { string factoryUri = linphone_core_get_conference_factory_uri(core); - focus = make_shared(factoryUri); + focus = ObjectFactory::create(factoryUri); this->subject = subject; } // ----------------------------------------------------------------------------- shared_ptr ClientGroupChatRoom::addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) { - activeParticipant = make_shared(addr); + activeParticipant = ObjectFactory::create(addr); activeParticipant->getPrivate()->createSession(*this, params, hasMedia, this); return activeParticipant; } @@ -143,7 +143,7 @@ void ClientGroupChatRoom::onParticipantAdded (const Address &addr) { lWarning() << "Participant " << participant << " added but already in the list of participants!"; return; } - participant = make_shared(addr); + participant = ObjectFactory::create(addr); participants.push_back(participant); LinphoneChatRoom *cr = L_GET_C_BACK_PTR(this); LinphoneChatRoomCbs *cbs = linphone_chat_room_get_callbacks(cr);