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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 5 08:31:22 UTC 2018


 vcl/source/control/listbox.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e33e73862ba2bbec9ee1f4e21ad12c6b0c0d13e5
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Dec 5 10:24:50 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Dec 5 10:25:30 2018 +0200

    -Werror=unused-but-set-variable
    
    after
        commit 0adbc69c81cc287386b31b25b2dc89780933e2b1
        remove unused VclEventId enum values
    
    Change-Id: Idcea4bfb2c7215fa903ebac806e73b8d1c7d4f63

diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx
index 3a048a3fedb8..5de0f2fe1a0b 100644
--- a/vcl/source/control/listbox.cxx
+++ b/vcl/source/control/listbox.cxx
@@ -1065,9 +1065,8 @@ void ListBox::SelectEntryPos( sal_Int32 nPos, bool bSelect )
 
     if ( 0 <= nPos && nPos < mpImplLB->GetEntryList()->GetEntryCount() )
     {
-        sal_Int32 newSelectCount = 0, nCurrentPos = mpImplLB->GetCurrentPos();
+        sal_Int32 nCurrentPos = mpImplLB->GetCurrentPos();
         mpImplLB->SelectEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), bSelect );
-        newSelectCount = GetSelectedEntryCount();
         //Only when bSelect == true, send both Selection & Focus events
         if (nCurrentPos != nPos && bSelect)
         {


More information about the Libreoffice-commits mailing list