diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-18 09:17:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-18 11:28:50 +0200 |
commit | 337a9a454c1bc95214111578d3f9c0622c55c509 (patch) | |
tree | 4eda99edf46e45ce804fcde98197cf0d96b7ac3d /chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx | |
parent | 6089755d197528d071906846c58a397add0876a5 (diff) |
use for-range on Sequence in chart2
Change-Id: Ief02e5d5284b0cbad26b04c0a282dccfee577b90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94398
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx')
-rw-r--r-- | chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx index e4952bbc0329..d50f39abc3bb 100644 --- a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx @@ -219,8 +219,8 @@ bool SeriesOptionsItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const Sf if(!bGroupBarsPerAxis) { //set the same value for all axes - for( sal_Int32 nN = 0; nN < aBarPositionSequence.getLength(); nN++ ) - aBarPositionSequence[nN] = rBarPosition; + for( auto & pos : aBarPositionSequence ) + pos = rBarPosition; } else if( nAxisIndex >= 0 && nAxisIndex < aBarPositionSequence.getLength() ) aBarPositionSequence[nAxisIndex] = rBarPosition; |