diff options
Diffstat (limited to 'chart2/source/view/axes/Tickmarks.cxx')
-rw-r--r-- | chart2/source/view/axes/Tickmarks.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx index 3d6d25a044bf..05dfe08520d0 100644 --- a/chart2/source/view/axes/Tickmarks.cxx +++ b/chart2/source/view/axes/Tickmarks.cxx @@ -310,17 +310,12 @@ void TickFactory2D::createPointSequenceForAxisMainLine( drawing::PointSequenceSe void TickFactory2D::updateScreenValues( TickInfoArraysType& rAllTickInfos ) const { //get the transformed screen values for all tickmarks in rAllTickInfos - TickInfoArraysType::iterator aDepthIter = rAllTickInfos.begin(); - const TickInfoArraysType::const_iterator aDepthEnd = rAllTickInfos.end(); - for( ; aDepthIter != aDepthEnd; ++aDepthIter ) + for (auto & tickInfos : rAllTickInfos) { - TickInfoArrayType::iterator aTickIter = (*aDepthIter).begin(); - const TickInfoArrayType::const_iterator aTickEnd = (*aDepthIter).end(); - for( ; aTickIter != aTickEnd; ++aTickIter ) + for (auto & tickInfo : tickInfos) { - TickInfo& rTickInfo = (*aTickIter); - rTickInfo.aTickScreenPosition = - getTickScreenPosition2D( rTickInfo.fScaledTickValue ); + tickInfo.aTickScreenPosition = + getTickScreenPosition2D(tickInfo.fScaledTickValue); } } } |