summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-04-11 09:00:34 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2020-04-11 11:07:29 +0200
commitda3922951be6e35852a47f1d2e27d044a8651d7c (patch)
tree177375d892a005d5ab8d40b75381ae4da9ddc39b /chart2/source/tools
parentdd2681813d02089c71a8b0f4dc4c8e2bf63d1791 (diff)
Use range-based for loop
Change-Id: I2ee332ffeb9004535882a7859f1821624ef5efa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92017 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/DataSourceHelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/tools/DataSourceHelper.cxx b/chart2/source/tools/DataSourceHelper.cxx
index 4b124aea28a4..3b6f08ef5420 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -66,9 +66,9 @@ void lcl_addDataSourceRanges(
{
if( xDataSource.is() )
{
- uno::Sequence< uno::Reference< data::XLabeledDataSequence > > aDataSequences( xDataSource->getDataSequences() );
- for( sal_Int32 i=0; i<aDataSequences.getLength(); ++i)
- lcl_addRanges( rOutResult, aDataSequences[i] );
+ const auto aDataSequences(xDataSource->getDataSequences());
+ for (const auto& rDataSequence : aDataSequences)
+ lcl_addRanges(rOutResult, rDataSequence);
}
}