diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-10-09 21:59:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-10 06:49:32 +0000 |
commit | f80134b65d7c41d9fce61845ecb327d450fe5ca7 (patch) | |
tree | 0f1c521bcd25f687bc43086848e73099c87a3dd2 /winaccessibility/source/UAccCOM | |
parent | fa2cb837647e659dd1d3438c4513d088ed9097c1 (diff) |
cppcheck: variableScope
Change-Id: I6c8b7aaedf7fcde5165d3a65af54aa0bcafc0b82
Reviewed-on: https://gerrit.libreoffice.org/29624
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'winaccessibility/source/UAccCOM')
-rw-r--r-- | winaccessibility/source/UAccCOM/MAccessible.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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<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) { |