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

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Oct 10 06:51:53 UTC 2016


 winaccessibility/source/UAccCOM/MAccessible.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit f80134b65d7c41d9fce61845ecb327d450fe5ca7
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Oct 9 21:59:36 2016 +0200

    cppcheck: variableScope
    
    Change-Id: I6c8b7aaedf7fcde5165d3a65af54aa0bcafc0b82
    Reviewed-on: https://gerrit.libreoffice.org/29624
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index 6393a7c..fe87fed6 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -1930,12 +1930,10 @@ STDMETHODIMP CMAccessible:: get_groupPosition(long __RPC_FAR *groupLevel,long __
 
         Reference<XAccessibleContext> pRParentContext = pParentAcc->getAccessibleContext();
 
-        int level = 0;
-        int index = 0;
-        int number = 0;
-
         if( Role ==  RADIO_BUTTON )
         {
+            int index = 0;
+            int number = 0;
             Reference<XAccessibleRelationSet> pRrelationSet = pRContext->getAccessibleRelationSet();
             long nRel = pRrelationSet->getRelationCount();
             for(int i=0 ; i<nRel ; i++)
@@ -2026,7 +2024,7 @@ STDMETHODIMP CMAccessible:: get_groupPosition(long __RPC_FAR *groupLevel,long __
             return S_OK;
         }
 
-
+        int level = 0;
         BOOL isFound = FALSE;
         while( pParentAcc.is() && !isFound)
         {


More information about the Libreoffice-commits mailing list