[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - vcl/source

Thorsten Behrens Thorsten.Behrens at CIB.de
Thu Jul 5 15:07:26 UTC 2018


 vcl/source/window/status.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 01161d411e4dfacb36c8889a91430ed44161447c
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date:   Thu Jul 5 17:06:49 2018 +0200

    vcl: fix -Werror=shadow
    
    Change-Id: If8897bc7e7a20961b2a325f20351ae9b6942563e

diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 09ab700d7a5e..16350be3c052 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -226,7 +226,6 @@ void StatusBar::ImplInitSettings()
 
 void StatusBar::ImplFormat()
 {
-    ImplStatusItem* pItem;
     long            nExtraWidth;
     long            nExtraWidth2;
     long            nX;
@@ -312,6 +311,7 @@ void StatusBar::ImplFormat()
             nX += ImplGetSVData()->maNWFData.mnStatusBarLowerRightOffset;
     }
 
+    ImplStatusItem* pItem;
     for (ImplStatusItem* i : *mpItemList) {
         pItem = i;
         if ( pItem->mbVisible ) {


More information about the Libreoffice-commits mailing list