summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/controller/main/ToolbarController.cxx5
-rw-r--r--drawinglayer/source/dumper/XShapeDumper.cxx5
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx7
3 files changed, 7 insertions, 10 deletions
diff --git a/chart2/source/controller/main/ToolbarController.cxx b/chart2/source/controller/main/ToolbarController.cxx
index 495afe526ded..4fd0990bfbf4 100644
--- a/chart2/source/controller/main/ToolbarController.cxx
+++ b/chart2/source/controller/main/ToolbarController.cxx
@@ -22,11 +22,10 @@ namespace chart {
ChartToolbarController::ChartToolbarController(const css::uno::Sequence<css::uno::Any>& rProperties)
{
css::uno::Reference<css::frame::XFrame> xFrame;
- sal_Int32 nLength = rProperties.getLength();
- for (sal_Int32 i = 0; i < nLength; ++i)
+ for (const auto& rProperty : rProperties)
{
css::beans::PropertyValue aPropValue;
- rProperties[i] >>= aPropValue;
+ rProperty >>= aPropValue;
if (aPropValue.Name == "Frame")
aPropValue.Value >>= xFrame;
}
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 );
}
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" )