summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-11 10:08:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-11 10:08:27 +0100
commit99a4ab06a9ad5c05d4cd7282f68ea5faaf2f1188 (patch)
treeb68b8684df68ca5e4e5cfc2f1e81e01aed26dbfd /accessibility
parent6c220995aa2485a9c5d23f0ec952a64151ab25b6 (diff)
parent will definitely exist at ctor time
Change-Id: I3d30b17e4105a98ad6ab378cee7128cac23f1dc0
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx12
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()