parent will definitely exist at ctor time

Change-Id: I3d30b17e4105a98ad6ab378cee7128cac23f1dc0
This commit is contained in:
Caolán McNamara 2016-10-11 10:08:27 +01:00
parent 6c220995aa
commit 99a4ab06a9

View File

@ -69,13 +69,11 @@ VCLXAccessibleListItem::VCLXAccessibleListItem(sal_Int32 _nIndexInParent, const
, m_nClientId(0) , m_nClientId(0)
, m_xParent(_xParent) , m_xParent(_xParent)
{ {
if (m_xParent.is()) assert(m_xParent.is());
{ m_xParentContext = m_xParent->getAccessibleContext();
m_xParentContext = m_xParent->getAccessibleContext(); ::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent->getListBoxHelper();
::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent->getListBoxHelper(); if (pListBoxHelper)
if (pListBoxHelper) m_sEntryText = pListBoxHelper->GetEntry((sal_uInt16)_nIndexInParent);
m_sEntryText = pListBoxHelper->GetEntry((sal_uInt16)_nIndexInParent);
}
} }
VCLXAccessibleListItem::~VCLXAccessibleListItem() VCLXAccessibleListItem::~VCLXAccessibleListItem()