diff --git a/src/call.cpp b/src/call.cpp index 5097d0eebd078d422541edc01fdcb5e435683171..3e0c5bae6d3d22667dcae6bfee57c4a8893f3094 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -317,7 +317,6 @@ Call::Call(Call::State startState, const QString& peerName, ContactMethod* numbe d_ptr->m_Account = account; d_ptr->m_PeerName = peerName; d_ptr->m_pPeerContactMethod = number; - d_ptr->m_pParentCall = nullptr; emit changed(); } @@ -331,7 +330,6 @@ Call::Call(const QString& confId, const QString& account) d_ptr->m_Account = AccountModel::instance().getById(account.toLatin1()); d_ptr->m_Type = (!confId.isEmpty())?Call::Type::CONFERENCE:Call::Type::CALL; d_ptr->m_DringId = confId; - d_ptr->m_pParentCall = nullptr; setObjectName("Conf:"+confId); diff --git a/src/private/call_p.h b/src/private/call_p.h index eff44202a2ed4159174f88c2a8f8d6906ecd2b98..2e56b0195085c871717280d081f8269acdea3bac 100644 --- a/src/private/call_p.h +++ b/src/private/call_p.h @@ -126,7 +126,7 @@ public: Call::Type m_Type ; Certificate* m_pCertificate ; FlagPack<Call::HoldFlags> m_fHoldFlags ; - Call* m_pParentCall ; + Call* m_pParentCall {nullptr}; QDateTime* m_pDateTime {nullptr}; QDate* m_pDateOnly {nullptr}; QString m_FormattedDate ;