summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-05 10:03:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-05 10:03:45 +0200
commit5da3f0f79229e0ce132b4de42a37bef0635afdda (patch)
treecc4c983e2887078aef8e333f7a950619f97fa1bf /accessibility
parent65c075f11fd64b8ca054f6f54cb8205f2c50ecc7 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: Icc27b904a4cc3dd94b247360d7399349989c7f20
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessiblelist.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index 955eecffc57a..2695c844cfbf 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);
+ // }
}
}