summaryrefslogtreecommitdiff
path: root/chart2/source/tools/DiagramHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/DiagramHelper.cxx')
-rw-r--r--chart2/source/tools/DiagramHelper.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx
index 82dca03fcd16..8023956f936d 100644
--- a/chart2/source/tools/DiagramHelper.cxx
+++ b/chart2/source/tools/DiagramHelper.cxx
@@ -714,7 +714,7 @@ uno::Reference< XChartType > DiagramHelper::getChartTypeOfSeries(
{
Reference< XDataSeriesContainer > xDSCnt( aChartTypeSeq[j], uno::UNO_QUERY_THROW );
Sequence< Reference< XDataSeries > > aSeriesSeq( xDSCnt->getDataSeries() );
- ::std::copy( aSeriesSeq.getConstArray(), aSeriesSeq.getConstArray() + aSeriesSeq.getLength(),
+ ::std::copy( aSeriesSeq.begin(), aSeriesSeq.end(),
::std::back_inserter( aResult ));
}
}
@@ -1226,9 +1226,8 @@ Sequence< Reference< XChartType > >
{
Reference< XChartTypeContainer > xCTCnt( aCooSysSeq[i], uno::UNO_QUERY_THROW );
Sequence< Reference< XChartType > > aChartTypeSeq( xCTCnt->getChartTypes());
- ::std::copy( aChartTypeSeq.getConstArray(),
- aChartTypeSeq.getConstArray() + aChartTypeSeq.getLength(),
- ::std::back_inserter( aResult ));
+ ::std::copy( aChartTypeSeq.begin(), aChartTypeSeq.end(),
+ ::std::back_inserter( aResult ));
}
}
catch( const uno::Exception & ex )