Commit f64376cb authored by Ronan's avatar Ronan
Browse files

fix(Conference): add override when necessary and cast correctly nb participants

parent b2a0cd77
......@@ -51,11 +51,11 @@ public:
private:
/* ConferenceListener */
void onConferenceCreated (const Address &addr);
void onConferenceTerminated (const Address &addr);
void onParticipantAdded (const Address &addr);
void onParticipantRemoved (const Address &addr);
void onParticipantSetAdmin (const Address &addr, bool isAdmin);
void onConferenceCreated (const Address &addr) override;
void onConferenceTerminated (const Address &addr) override;
void onParticipantAdded (const Address &addr) override;
void onParticipantRemoved (const Address &addr) override;
void onParticipantSetAdmin (const Address &addr, bool isAdmin) override;
private:
L_DECLARE_PRIVATE(ClientGroupChatRoom);
......
......@@ -59,7 +59,7 @@ const string& Conference::getId () const {
}
int Conference::getNbParticipants () const {
return participants.size();
return static_cast<int>(participants.size());
}
list<shared_ptr<Participant>> Conference::getParticipants () const {
......
......@@ -36,16 +36,16 @@ protected:
public:
/* ConferenceInterface */
virtual std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia);
virtual void removeParticipant (const std::shared_ptr<const Participant> &participant);
virtual std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) override;
virtual void removeParticipant (const std::shared_ptr<const Participant> &participant) override;
protected:
/* ConferenceListener */
virtual void onConferenceCreated (const Address &addr);
virtual void onConferenceTerminated (const Address &addr);
virtual void onParticipantAdded (const Address &addr);
virtual void onParticipantRemoved (const Address &addr);
virtual void onParticipantSetAdmin (const Address &addr, bool isAdmin);
virtual void onConferenceCreated (const Address &addr) override;
virtual void onConferenceTerminated (const Address &addr) override;
virtual void onParticipantAdded (const Address &addr) override;
virtual void onParticipantRemoved (const Address &addr) override;
virtual void onParticipantSetAdmin (const Address &addr, bool isAdmin) override;
private:
L_DISABLE_COPY(RemoteConference);
......
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