From 99a4ab06a9ad5c05d4cd7282f68ea5faaf2f1188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 11 Oct 2016 10:08:27 +0100 Subject: [PATCH] parent will definitely exist at ctor time Change-Id: I3d30b17e4105a98ad6ab378cee7128cac23f1dc0 --- .../source/standard/vclxaccessiblelistitem.cxx | 12 +++++------- 1 file 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()