diff options
Diffstat (limited to 'chart2/source/model/main/Axis.cxx')
-rw-r--r-- | chart2/source/model/main/Axis.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index c76ef479dd6a..d80334a9abb7 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -309,17 +309,14 @@ typedef uno::Reference< beans::XPropertySet > lcl_tSubGridType; void lcl_CloneSubGrids( const uno::Sequence< lcl_tSubGridType > & rSource, uno::Sequence< lcl_tSubGridType > & rDestination ) { - const lcl_tSubGridType * pBegin = rSource.getConstArray(); - const lcl_tSubGridType * pEnd = pBegin + rSource.getLength(); - rDestination.realloc( rSource.getLength()); lcl_tSubGridType * pDestBegin = rDestination.getArray(); lcl_tSubGridType * pDestEnd = pDestBegin + rDestination.getLength(); lcl_tSubGridType * pDestIt = pDestBegin; - for( const lcl_tSubGridType * pIt = pBegin; pIt != pEnd; ++pIt ) + for( Reference< beans::XPropertySet > const & i : rSource ) { - Reference< beans::XPropertySet > xSubGrid( *pIt ); + Reference< beans::XPropertySet > xSubGrid( i ); if( xSubGrid.is()) { Reference< util::XCloneable > xCloneable( xSubGrid, uno::UNO_QUERY ); |