accessibility/source/standard/vclxaccessiblelist.cxx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-)
New commits: commit 5da3f0f79229e0ce132b4de42a37bef0635afdda Author: Stephan Bergmann <[email protected]> Date: Mon Oct 5 10:03:45 2015 +0200 clang-analyzer-deadcode.DeadStores Change-Id: Icc27b904a4cc3dd94b247360d7399349989c7f20 diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index 955eecf..2695c84 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -183,22 +183,22 @@ void VCLXAccessibleList::notifyVisibleStates(bool _bSetNew ) } } -void VCLXAccessibleList::UpdateSelection_Acc (const ::rtl::OUString& sTextOfSelectedItem, bool b_IsDropDownList) +void VCLXAccessibleList::UpdateSelection_Acc (const ::rtl::OUString& /*sTextOfSelectedItem*/, bool b_IsDropDownList) { if ( m_aBoxType == COMBOBOX ) { - VclPtr< ComboBox > pBox = GetAs< ComboBox >(); - if ( pBox ) - { - // Find the index of the selected item inside the VCL control... - sal_Int32 nIndex = pBox->GetEntryPos(sTextOfSelectedItem); - // ...and then find the associated accessibility object. - if ( nIndex == LISTBOX_ENTRY_NOTFOUND ) - nIndex = 0; - /* FIXME: is there something missing here? nIndex is unused. Looks - * like copy-paste from VCLXAccessibleList::UpdateSelection() */ - UpdateSelection_Impl_Acc(b_IsDropDownList); - } + /* FIXME: is there something missing here? nIndex is unused. Looks like + * copy-paste from VCLXAccessibleList::UpdateSelection() */ + // VclPtr< ComboBox > pBox = GetAs< ComboBox >(); + // if ( pBox ) + // { + // // Find the index of the selected item inside the VCL control... + // sal_Int32 nIndex = pBox->GetEntryPos(sTextOfSelectedItem); + // // ...and then find the associated accessibility object. + // if ( nIndex == LISTBOX_ENTRY_NOTFOUND ) + // nIndex = 0; + UpdateSelection_Impl_Acc(b_IsDropDownList); + // } } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
