diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-02-27 20:51:41 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-02-28 09:02:40 +0100 |
commit | 0845e782eb271c6e13ad376cff7ec72724d2a89c (patch) | |
tree | a00b87d608435182df7261bfd9650dfc922e6c90 /accessibility | |
parent | dd514841e6d9b1b2f9d1ac13bca593fcfcb781f6 (diff) |
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 <m.weghorn@posteo.de>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblebox.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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<XAccessible> SAL_CALL VCLXAccessibleBox::getAccessibleChild (sal_Int64 // List. if ( ! m_xList.is()) { - rtl::Reference<VCLXAccessibleList> 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; } |