summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 09:53:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-12 07:12:44 +0000
commitb415494bf0468b74318b61f114e2ff4ae68c00ee (patch)
tree432f9397ecf4c410e4e9767f433c60e4dc0b0087 /sw/source/core/layout/sectfrm.cxx
parent875984617cfd6c773eb93f339929eb3fabd3e97b (diff)
clang-tidy modernize-loop-convert in sw
Change-Id: I1f4a0ad6658bd3154c48940296aa8edc1ea1612c Reviewed-on: https://gerrit.libreoffice.org/24876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r--sw/source/core/layout/sectfrm.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index c24282ca5706..833536864eb0 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -1105,10 +1105,8 @@ class ExtraFormatToPositionObjs
SwSortedObjs* pObjs = pPageFrame ? pPageFrame->GetSortedObjs() : nullptr;
if ( pObjs )
{
- for ( size_t i = 0; i < pObjs->size(); ++i )
+ for (SwAnchoredObject* pAnchoredObj : *pObjs)
{
- SwAnchoredObject* pAnchoredObj = (*pObjs)[i];
-
if ( mpSectFrame->IsAnLower( pAnchoredObj->GetAnchorFrame() ) )
{
pAnchoredObj->SetKeepPosLocked( false );
@@ -1124,10 +1122,8 @@ class ExtraFormatToPositionObjs
SwSortedObjs* pObjs = rFrame.GetDrawObjs();
if ( pObjs )
{
- for ( size_t i = 0; i < pObjs->size(); ++i )
+ for (SwAnchoredObject* pAnchoredObj : *pObjs)
{
- SwAnchoredObject* pAnchoredObj = (*pObjs)[i];
-
pAnchoredObj->UnlockPosition();
pAnchoredObj->SetClearedEnvironment( false );
}
@@ -1199,10 +1195,8 @@ class ExtraFormatToPositionObjs
SwSortedObjs* pObjs = pPageFrame ? pPageFrame->GetSortedObjs() : nullptr;
if ( pObjs )
{
- for ( size_t i = 0; i < pObjs->size(); ++i )
+ for (SwAnchoredObject* pAnchoredObj : *pObjs)
{
- SwAnchoredObject* pAnchoredObj = (*pObjs)[i];
-
if ( mpSectFrame->IsAnLower( pAnchoredObj->GetAnchorFrame() ) )
{
pAnchoredObj->SetKeepPosLocked( true );