From f07ff7ed8a23b4982ed9cd7d9e2083c9d0928384 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 May 2016 10:10:54 +0200 Subject: clang-tidy modernize-loop-convert in oox to sax Change-Id: If0d87b6679765fc6d1f9300c6972845cf3742b9c Reviewed-on: https://gerrit.libreoffice.org/24674 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- oox/source/vml/vmlshape.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'oox/source/vml') diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 34527f06a4fc..b58248f7e810 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -504,13 +504,13 @@ void ShapeBase::convertShapeProperties( const Reference< XShape >& rxShape ) con static const sal_Int32 aBorders[] = { PROP_TopBorder, PROP_LeftBorder, PROP_BottomBorder, PROP_RightBorder }; - for (unsigned int i = 0; i < SAL_N_ELEMENTS(aBorders); ++i) + for (sal_Int32 nBorder : aBorders) { - table::BorderLine2 aBorderLine = xPropertySet->getPropertyValue(PropertyMap::getPropertyName(aBorders[i])).get(); + table::BorderLine2 aBorderLine = xPropertySet->getPropertyValue(PropertyMap::getPropertyName(nBorder)).get(); aBorderLine.Color = aPropMap.getProperty(PROP_LineColor).get(); if (oLineWidth) aBorderLine.LineWidth = *oLineWidth; - aPropMap.setProperty(aBorders[i], uno::makeAny(aBorderLine)); + aPropMap.setProperty(nBorder, uno::makeAny(aBorderLine)); } aPropMap.erase(PROP_LineColor); } -- cgit