summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-03-01 10:32:34 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2022-03-01 15:52:18 +0100
commita427a46db0fa453acabe10389e106441031b317e (patch)
treea0bdb977af142cb2267712fb0a8c2c575c8603f4 /winaccessibility
parent45ae2fb7a7de4da4c3d6c7c359aaf92ccf0688a2 (diff)
wina11y: Use range-based for
Change-Id: Ie03126205d45ad2fcae14af53ab7a499f3c445f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130759 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/service/AccObjectWinManager.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx
index c405e6799d2b..bcde1ccf46a4 100644
--- a/winaccessibility/source/service/AccObjectWinManager.cxx
+++ b/winaccessibility/source/service/AccObjectWinManager.cxx
@@ -1057,11 +1057,9 @@ bool AccObjectWinManager::IsStateManageDescendant(XAccessible* pAccessible)
if( !pRState.is() )
return false;
- Sequence<short> pStates = pRState->getStates();
- int count = pStates.getLength();
- for( int iIndex = 0;iIndex < count;iIndex++ )
+ for (sal_Int16 nState : pRState->getStates())
{
- if (pStates[iIndex] == AccessibleStateType::MANAGES_DESCENDANTS)
+ if (nState == AccessibleStateType::MANAGES_DESCENDANTS)
return true;
}
}