summaryrefslogtreecommitdiff
path: root/chart2/source/tools/DataSeriesHelper.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-03 12:54:07 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-03 19:20:53 +0100
commitba7191ed0d4da2f5a2ebd2ef40387b26145860f1 (patch)
treee019dbd2dcc947c155e63841c2ec3a53eca427fb /chart2/source/tools/DataSeriesHelper.cxx
parent301514183d471cfeb085673eb4563f8c310162b7 (diff)
Use for-range loops in chart2 (part1)
Change-Id: I9310a6dc79d47f9058df8a3b463667389af1b2cb Reviewed-on: https://gerrit.libreoffice.org/50672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'chart2/source/tools/DataSeriesHelper.cxx')
-rw-r--r--chart2/source/tools/DataSeriesHelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx
index d946b3f9a62c..e05c014cddce 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -422,12 +422,10 @@ void setStackModeAtSeries(
aAxisIndexSet.insert(0);
}
- for( std::set< sal_Int32 >::const_iterator aIt = aAxisIndexSet.begin();
- aIt != aAxisIndexSet.end(); ++aIt )
+ for (auto const& axisIndex : aAxisIndexSet)
{
- sal_Int32 nAxisIndex = *aIt;
Reference< chart2::XAxis > xAxis(
- xCorrespondingCoordinateSystem->getAxisByDimension( 1, nAxisIndex ));
+ xCorrespondingCoordinateSystem->getAxisByDimension(1, axisIndex));
if( xAxis.is())
{
bool bPercent = (eStackMode == StackMode::YStackedPercent);