From 582bf1a27c5adc6684e8d9af3805cfe40fa051d5 Mon Sep 17 00:00:00 2001 From: dtm Date: Mon, 20 Dec 2021 22:32:12 +0000 Subject: tdf#145538 - Use range based for loops Change-Id: Ib16c742b39af62694ef591dcdaa975b9a720b4a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127203 Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- filter/source/xsltfilter/XSLTFilter.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'filter') diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index 4a8cd64b4fe6..d449cee7ffd9 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -311,14 +311,13 @@ namespace XSLT // the input stream that represents the imported file // is most important here since we need to supply it to // the sax parser that drives the supplied document handler - sal_Int32 nLength = aSourceData.getLength(); OUString aName, aURL; css::uno::Reference xInputStream; css::uno::Reference xInterActionHandler; - for (sal_Int32 i = 0; i < nLength; i++) + for (const auto& sourceDataItem : aSourceData) { - aName = aSourceData[i].Name; - Any value = aSourceData[i].Value; + aName = sourceDataItem.Name; + Any value = sourceDataItem.Value; if ( aName == "InputStream" ) value >>= xInputStream; else if ( aName == "URL" ) -- cgit