summaryrefslogtreecommitdiff
path: root/editeng/source/items
diff options
context:
space:
mode:
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);