summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authordtm <daniel@fearnley.net>2021-12-20 22:32:12 +0000
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-01-12 20:13:28 +0100
commit582bf1a27c5adc6684e8d9af3805cfe40fa051d5 (patch)
tree645686dab38c507a56e0a9b97bd88b4b34eb9e13 /filter
parentcd7af555b75fbc90d9a9012c0b0b40ae2e11ac2f (diff)
tdf#145538 - Use range based for loops
Change-Id: Ib16c742b39af62694ef591dcdaa975b9a720b4a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127203 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx7
1 files changed, 3 insertions, 4 deletions
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> xInputStream;
css::uno::Reference<XInteractionHandler> 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" )