[Libreoffice-commits] core.git: accessibility/source
Caolán McNamara
caolanm at redhat.com
Tue Oct 11 09:14:32 UTC 2016
accessibility/source/standard/vclxaccessiblelistitem.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit 99a4ab06a9ad5c05d4cd7282f68ea5faaf2f1188
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Oct 11 10:08:27 2016 +0100
parent will definitely exist at ctor time
Change-Id: I3d30b17e4105a98ad6ab378cee7128cac23f1dc0
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index 53090a7..a7e0795 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()
More information about the Libreoffice-commits
mailing list