summaryrefslogtreecommitdiff
path: root/editeng/source/items
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-26 09:08:01 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-26 07:43:58 +0000
commit17c4f7f0bc986ed2623a60eea99be01036899af3 (patch)
treece231cac5d9b2d91fb175f22a45bf9dd664057f8 /editeng/source/items
parent501720afbf226443c1121379efb661d2902113df (diff)
clang-tidy modernize-loop-convert in e*
Change-Id: If56abefa81b41479e3ea9890dee1c43f006086de Reviewed-on: https://gerrit.libreoffice.org/24384 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng/source/items')
-rw-r--r--editeng/source/items/frmitems.cxx4
-rw-r--r--editeng/source/items/numitem.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index ee96b672e60f..62e4a42141df 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -2255,11 +2255,11 @@ SfxPoolItem* SvxBoxItem::Create( SvStream& rStrm, sal_uInt16 nIVersion ) const
if( nIVersion >= BOX_4DISTS_VERSION && (cLine&0x10) != 0 )
{
- for( sal_uInt16 i=0; i < 4; i++ )
+ for(SvxBoxItemLine & i : aLineMap)
{
sal_uInt16 nDist;
rStrm.ReadUInt16( nDist );
- pAttr->SetDistance( nDist, aLineMap[i] );
+ pAttr->SetDistance( nDist, i );
}
}
else
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 44205833db53..41ef9f0d992d 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -716,8 +716,8 @@ void SvxNumRule::Store( SvStream &rStream )
SvxNumRule::~SvxNumRule()
{
- for(sal_uInt16 i = 0; i < SVX_MAX_NUM; i++)
- delete aFmts[i];
+ for(SvxNumberFormat* aFmt : aFmts)
+ delete aFmt;
if(!--nRefCount)
{
DELETEZ(pStdNumFmt);