summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes/VCartesianGrid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/view/axes/VCartesianGrid.cxx')
-rw-r--r--chart2/source/view/axes/VCartesianGrid.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/view/axes/VCartesianGrid.cxx b/chart2/source/view/axes/VCartesianGrid.cxx
index 36a143df4545..eda61d9b8e6c 100644
--- a/chart2/source/view/axes/VCartesianGrid.cxx
+++ b/chart2/source/view/axes/VCartesianGrid.cxx
@@ -187,12 +187,12 @@ void VCartesianGrid::fillLinePropertiesFromGridModel( std::vector<VLinePropertie
return;
VLineProperties aLineProperties;
- for( sal_Int32 nN=0; nN < rGridPropertiesList.getLength(); nN++ )
+ for( const auto & rxPropSet : rGridPropertiesList )
{
- if(!AxisHelper::isGridVisible( rGridPropertiesList[nN] ))
+ if(!AxisHelper::isGridVisible( rxPropSet ))
aLineProperties.LineStyle <<= drawing::LineStyle_NONE;
else
- aLineProperties.initFromPropertySet( rGridPropertiesList[nN] );
+ aLineProperties.initFromPropertySet( rxPropSet );
rLinePropertiesList.push_back(aLineProperties);
}
};