Commit 8c4881c0 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/components/contact/VcardModel): add assert on clone

parent 552bbbb0
......@@ -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;
}
// -----------------------------------------------------------------------------
......
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