Kaydet (Commit) 5da3f0f7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: Icc27b904a4cc3dd94b247360d7399349989c7f20
üst 65c075f1
...@@ -183,22 +183,22 @@ void VCLXAccessibleList::notifyVisibleStates(bool _bSetNew ) ...@@ -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 ) if ( m_aBoxType == COMBOBOX )
{ {
VclPtr< ComboBox > pBox = GetAs< ComboBox >(); /* FIXME: is there something missing here? nIndex is unused. Looks like
if ( pBox ) * copy-paste from VCLXAccessibleList::UpdateSelection() */
{ // VclPtr< ComboBox > pBox = GetAs< ComboBox >();
// Find the index of the selected item inside the VCL control... // if ( pBox )
sal_Int32 nIndex = pBox->GetEntryPos(sTextOfSelectedItem); // {
// ...and then find the associated accessibility object. // // Find the index of the selected item inside the VCL control...
if ( nIndex == LISTBOX_ENTRY_NOTFOUND ) // sal_Int32 nIndex = pBox->GetEntryPos(sTextOfSelectedItem);
nIndex = 0; // // ...and then find the associated accessibility object.
/* FIXME: is there something missing here? nIndex is unused. Looks // if ( nIndex == LISTBOX_ENTRY_NOTFOUND )
* like copy-paste from VCLXAccessibleList::UpdateSelection() */ // nIndex = 0;
UpdateSelection_Impl_Acc(b_IsDropDownList); UpdateSelection_Impl_Acc(b_IsDropDownList);
} // }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment