[Libreoffice-commits] core.git: accessibility/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Dec 31 13:08:35 UTC 2018


 accessibility/source/standard/vclxaccessiblebox.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 48c03635a0de4fc2c0886a134fdae616cecb4db1
Author:     Tóth Attila <toth.ata11 at gmail.com>
AuthorDate: Sun Dec 30 01:33:10 2018 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Dec 31 14:08:14 2018 +0100

    cppcheck: 'nSelectedEntryCount' is assigned a value that is never used.
    
    Change-Id: I74c867a9fab969120884236b6ed207a0a7014932
    Reviewed-on: https://gerrit.libreoffice.org/65754
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx
index df87e4d7e350..ec9dfc87928c 100644
--- a/accessibility/source/standard/vclxaccessiblebox.cxx
+++ b/accessibility/source/standard/vclxaccessiblebox.cxx
@@ -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);
         }


More information about the Libreoffice-commits mailing list