mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
feat(Event): add assert on type when Call or Conference event are created
This commit is contained in:
parent
0e37546ef3
commit
1d968f7ddd
2 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ public:
|
|||
CallEvent::CallEvent (Type type, const shared_ptr<Call> &call) : Event(*new CallEventPrivate, type) {
|
||||
L_D(CallEvent);
|
||||
L_ASSERT(call);
|
||||
L_ASSERT(type == CallStartEvent || type == CallEndEvent);
|
||||
d->call = call;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ public:
|
|||
|
||||
ConferenceEvent::ConferenceEvent (Type type, const shared_ptr<Address> &address) : Event(*new ConferenceEventPrivate, type) {
|
||||
L_D(ConferenceEvent);
|
||||
L_ASSERT(type == ConferenceCreatedEvent || type == ConferenceDestroyedEvent);
|
||||
L_ASSERT(address);
|
||||
d->address = address;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue