summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 16:12:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 12:50:55 +0200
commit20571c472528c4f98fe3f55700d134915d32a49a (patch)
tree9b350824d845b8aaeb13d087ef74febb454b821b /chart2
parentb401896a56149aa2871b65a330a6f601a9830ccd (diff)
use more range-for on uno::Sequence
Change-Id: Ifad32425d79be5a22d33d721bdc5fb993f699759 Reviewed-on: https://gerrit.libreoffice.org/39763 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/main/Axis.cxx7
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 );