mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(src/components/contact/VcardModel): add assert on clone
This commit is contained in:
parent
552bbbb004
commit
8c4881c004
1 changed files with 5 additions and 1 deletions
|
|
@ -100,8 +100,12 @@ VcardModel::~VcardModel () {
|
|||
VcardModel *VcardModel::clone () const {
|
||||
shared_ptr<linphone::Vcard> vcard = mVcard->clone();
|
||||
Q_ASSERT(vcard != nullptr);
|
||||
Q_ASSERT(vcard->getVcard() != nullptr);
|
||||
|
||||
return new VcardModel(vcard);
|
||||
VcardModel *vcardModel = new VcardModel(vcard);
|
||||
qInfo() << QStringLiteral("Clone vcard:") << this << vcardModel;
|
||||
|
||||
return vcardModel;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue