From f80134b65d7c41d9fce61845ecb327d450fe5ca7 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 9 Oct 2016 21:59:36 +0200 Subject: cppcheck: variableScope Change-Id: I6c8b7aaedf7fcde5165d3a65af54aa0bcafc0b82 Reviewed-on: https://gerrit.libreoffice.org/29624 Tested-by: Jenkins Reviewed-by: Noel Grandin --- winaccessibility/source/UAccCOM/MAccessible.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'winaccessibility/source/UAccCOM') diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx index 6393a7c7e476..fe87fed6b390 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 pRParentContext = pParentAcc->getAccessibleContext(); - int level = 0; - int index = 0; - int number = 0; - if( Role == RADIO_BUTTON ) { + int index = 0; + int number = 0; Reference pRrelationSet = pRContext->getAccessibleRelationSet(); long nRel = pRrelationSet->getRelationCount(); for(int i=0 ; i