From 0845e782eb271c6e13ad376cff7ec72724d2a89c Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Tue, 27 Feb 2024 20:51:41 +0100 Subject: a11y: Drop extra local variable Just assign to `VCLXAccessibleBox::m_xList` right away. Change-Id: Id6cd871ccb54cd709ddf3ed6e59b8f3feb8314ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164061 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- accessibility/source/standard/vclxaccessiblebox.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'accessibility') diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx index 4562a0fc40c0..43b9967ed51a 100644 --- a/accessibility/source/standard/vclxaccessiblebox.cxx +++ b/accessibility/source/standard/vclxaccessiblebox.cxx @@ -293,11 +293,10 @@ Reference SAL_CALL VCLXAccessibleBox::getAccessibleChild (sal_Int64 // List. if ( ! m_xList.is()) { - rtl::Reference pList = new VCLXAccessibleList ( GetVCLXWindow(), + m_xList = new VCLXAccessibleList(GetVCLXWindow(), (m_aBoxType == LISTBOX ? VCLXAccessibleList::LISTBOX : VCLXAccessibleList::COMBOBOX), this); - pList->SetIndexInParent (i); - m_xList = pList; + m_xList->SetIndexInParent(i); } xChild = m_xList; } -- cgit