diff options
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblelistitem.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index 53090a7f9141..a7e079553940 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -69,13 +69,11 @@ VCLXAccessibleListItem::VCLXAccessibleListItem(sal_Int32 _nIndexInParent, const , m_nClientId(0) , m_xParent(_xParent) { - if (m_xParent.is()) - { - m_xParentContext = m_xParent->getAccessibleContext(); - ::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent->getListBoxHelper(); - if (pListBoxHelper) - m_sEntryText = pListBoxHelper->GetEntry((sal_uInt16)_nIndexInParent); - } + assert(m_xParent.is()); + m_xParentContext = m_xParent->getAccessibleContext(); + ::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent->getListBoxHelper(); + if (pListBoxHelper) + m_sEntryText = pListBoxHelper->GetEntry((sal_uInt16)_nIndexInParent); } VCLXAccessibleListItem::~VCLXAccessibleListItem() |