diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 09:11:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 09:54:30 +0200 |
commit | 60846212c7f5271a86fd43555d633f77d59f5a10 (patch) | |
tree | ba3d9464385a2f3abdeea93b1fe887bf385f8463 /svx/source/accessibility | |
parent | 8477bbf8d6867e656b8132f0ddd682d08590a547 (diff) |
use for-range on Sequence in sfx2..sw
Change-Id: I09806869f2fdbae61f4c5d5c9db6859202bb63b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94609
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/AccessibleControlShape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx index a775d572b254..2eaf8448f9c5 100644 --- a/svx/source/accessibility/AccessibleControlShape.cxx +++ b/svx/source/accessibility/AccessibleControlShape.cxx @@ -785,8 +785,8 @@ void AccessibleControlShape::initializeComposedState() // now, only states which are not in the responsibility of the UNO control should be part of this state set { Sequence< sal_Int16 > aInitStates = pComposedStates->getStates(); - for ( sal_Int32 i=0; i<aInitStates.getLength(); ++i ) - OSL_ENSURE( !isComposedState( aInitStates.getConstArray()[i] ), + for ( sal_Int16 state : aInitStates ) + OSL_ENSURE( !isComposedState( state ), "AccessibleControlShape::initializeComposedState: invalid initial composed state (should be controlled by the UNO-control)!" ); } #endif |