mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-04 05:09:27 +00:00
feat(src/components/contact/VcardModel): add assert on clone
This commit is contained in:
parent
1de0129e1e
commit
365cfcf0ad
1 changed files with 4 additions and 1 deletions
|
|
@ -98,7 +98,10 @@ VcardModel::~VcardModel () {
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
VcardModel *VcardModel::clone () const {
|
||||
return new VcardModel(mVcard->clone());
|
||||
shared_ptr<linphone::Vcard> vcard = mVcard->clone();
|
||||
Q_ASSERT(vcard != nullptr);
|
||||
|
||||
return new VcardModel(vcard);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue