summaryrefslogtreecommitdiff
path: root/drawinglayer
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 /drawinglayer
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 'drawinglayer')
-rw-r--r--drawinglayer/source/dumper/XShapeDumper.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx
index 1434de2ba219..d0e2cf97a1f5 100644
--- a/drawinglayer/source/dumper/XShapeDumper.cxx
+++ b/drawinglayer/source/dumper/XShapeDumper.cxx
@@ -1077,9 +1077,8 @@ void dumpInteropGrabBagAsElement(const uno::Sequence< beans::PropertyValue>& aIn
{
(void)xmlTextWriterStartElement(xmlWriter, BAD_CAST( "InteropGrabBag" ));
- sal_Int32 nLength = aInteropGrabBag.getLength();
- for (sal_Int32 i = 0; i < nLength; ++i)
- dumpPropertyValueAsElement(aInteropGrabBag[i], xmlWriter);
+ for (const auto& item: aInteropGrabBag)
+ dumpPropertyValueAsElement(item, xmlWriter);
(void)xmlTextWriterEndElement( xmlWriter );
}