diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-07-13 20:18:56 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-26 06:54:46 -0500 |
commit | 7fc5207ebe57a2b88e2ba7ab45e4ce3f6c049df3 (patch) | |
tree | 2084f8227b127aed96a1a806f76dd8c74c33b322 /sw | |
parent | 676efb67198d48be778035d07cacb71efef38dff (diff) |
Refactor a tiny bit of SwLayAction::IsShortCut
Change-Id: I13d4fbebec02bddaa27e8929188d497dde715730
Reviewed-on: https://gerrit.libreoffice.org/10980
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/layact.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index c3c994e67b45..70ecb3f20ccf 100644 --- a/sw/source/core/layout/layact.cxx +++ b/sw/source/core/layout/layact.cxx @@ -1175,15 +1175,13 @@ bool SwLayAction::IsShortCut( SwPageFrm *&prPage ) } // #121980# - no shortcut, if at previous page // an anchored object is registered, whose anchor is <pCntnt>. - else if ( prPage->GetPrev() && - static_cast<SwPageFrm*>(prPage->GetPrev())->GetSortedObjs() ) + else if ( prPage->GetPrev() ) { SwSortedObjs* pObjs = static_cast<SwPageFrm*>(prPage->GetPrev())->GetSortedObjs(); if ( pObjs ) { - sal_uInt32 i = 0; - for ( ; i < pObjs->Count(); ++i ) + for ( sal_uInt32 i = 0; i < pObjs->Count(); ++i ) { SwAnchoredObject* pObj = (*pObjs)[i]; if ( pObj->GetAnchorFrmContainingAnchPos() == pCntnt ) |