diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-05 10:10:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-05 12:44:25 +0000 |
commit | f07ff7ed8a23b4982ed9cd7d9e2083c9d0928384 (patch) | |
tree | 636c69f83d25d0bfe540322b24dcbe3779c6b9b7 /oox/source/vml/vmlshape.cxx | |
parent | 931a72efbc8708fab91e849b39a84e6b7939c7de (diff) |
clang-tidy modernize-loop-convert in oox to sax
Change-Id: If0d87b6679765fc6d1f9300c6972845cf3742b9c
Reviewed-on: https://gerrit.libreoffice.org/24674
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'oox/source/vml/vmlshape.cxx')
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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>(); + table::BorderLine2 aBorderLine = xPropertySet->getPropertyValue(PropertyMap::getPropertyName(nBorder)).get<table::BorderLine2>(); aBorderLine.Color = aPropMap.getProperty(PROP_LineColor).get<sal_Int32>(); if (oLineWidth) aBorderLine.LineWidth = *oLineWidth; - aPropMap.setProperty(aBorders[i], uno::makeAny(aBorderLine)); + aPropMap.setProperty(nBorder, uno::makeAny(aBorderLine)); } aPropMap.erase(PROP_LineColor); } |