summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-08-31 08:46:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-31 15:10:56 +0200
commit1fb467ae240de07bc381385ec0589a6e99ca7042 (patch)
tree41a4fe31ffdde2780afe7ae70ebc7d3914c4dc44 /svx/source/dialog
parentd2c61ed43006066902984c37e6bd6b28a15968c9 (diff)
use concrete type for SvxShowCharSetAcc::m_aChildren
avoid some unnecessary casting Change-Id: I73338c00b90357fe939e38a53f87a4ef9f13e86c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156322 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/charmap.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 18a31b5f7a74..a9806505d8c8 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -767,11 +767,14 @@ void SvxShowCharSet::SelectIndex(int nNewIndex, bool bFocus)
if( m_xAccessible.is() )
{
svx::SvxShowCharSetItem* pItem = ImplGetItem(nSelectedIndex);
+ rtl::Reference<svx::SvxShowCharSetItemAcc> xItemAcc = pItem->GetAccessible();
// Don't fire the focus event.
if ( bFocus )
- m_xAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, Any(), Any(pItem->GetAccessible()) ); // this call assures that m_pItem is set
+ m_xAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, Any(),
+ Any(uno::Reference<XAccessible>(xItemAcc)) ); // this call assures that m_pItem is set
else
- m_xAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED_NOFOCUS, Any(), Any(pItem->GetAccessible()) ); // this call assures that m_pItem is set
+ m_xAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED_NOFOCUS, Any(),
+ Any(uno::Reference<XAccessible>(xItemAcc)) ); // this call assures that m_pItem is set
assert(pItem->m_xItem.is() && "No accessible created!");
Any aOldAny, aNewAny;
@@ -826,7 +829,7 @@ IMPL_LINK_NOARG(SvxShowCharSet, VscrollHdl, weld::ScrolledWindow&, void)
int nLast = LastInView();
for ( ; nLast != nSelectedIndex; ++nLast)
{
- aOldAny <<= ImplGetItem(nLast)->GetAccessible();
+ aOldAny <<= uno::Reference<XAccessible>(ImplGetItem(nLast)->GetAccessible());
m_xAccessible ->fireEvent( AccessibleEventId::CHILD, aOldAny, aNewAny );
}
}