From 7fc5207ebe57a2b88e2ba7ab45e4ce3f6c049df3 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Sun, 13 Jul 2014 20:18:56 +0200 Subject: Refactor a tiny bit of SwLayAction::IsShortCut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I13d4fbebec02bddaa27e8929188d497dde715730 Reviewed-on: https://gerrit.libreoffice.org/10980 Reviewed-by: Björn Michaelsen Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/layout/layact.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sw') 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 . - else if ( prPage->GetPrev() && - static_cast(prPage->GetPrev())->GetSortedObjs() ) + else if ( prPage->GetPrev() ) { SwSortedObjs* pObjs = static_cast(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 ) -- cgit