Kaydet (Commit) 48c03635 authored tarafından Tóth Attila's avatar Tóth Attila Kaydeden (comit) Tamás Zolnai

cppcheck: 'nSelectedEntryCount' is assigned a value that is never used.

Change-Id: I74c867a9fab969120884236b6ed207a0a7014932
Reviewed-on: https://gerrit.libreoffice.org/65754Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 7a308efc
......@@ -508,11 +508,10 @@ void VCLXAccessibleBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& r
}
else if (m_aBoxType == LISTBOX && m_bIsDropDownBox)
{
sal_Int32 nSelectedEntryCount = 0;
VclPtr< ListBox > pListBox = GetAs< ListBox >();
if (pListBox != nullptr && pListBox->GetEntryCount() > 0)
{
nSelectedEntryCount = pListBox->GetSelectedEntryCount();
sal_Int32 nSelectedEntryCount = pListBox->GetSelectedEntryCount();
if ( nSelectedEntryCount == 0)
rStateSet.AddState(AccessibleStateType::INDETERMINATE);
}
......
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