From ab2cc86cf5d69bfaf765f3d4aa314dcb5339f533 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 25 Oct 2011 15:40:30 +0300 Subject: WaE: unreachable code --- sw/source/core/layout/atrfrm.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index afe27761a348..c89ef90ea6e4 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -2796,7 +2796,11 @@ void SwFlyFrmFmt::MakeFrms() SwCntntNode *pCNd = aAnchorAttr.GetCntntAnchor()->nNode.GetNode().GetCntntNode(); SwIterator aIter( *pCNd ); - for (SwFrm* pFrm = aIter.First(); pFrm; pFrm = aIter.Next() ) + for (SwFrm* pFrm = aIter.First(); + pFrm; + /* unreachable, note unconditional break below + pFrm = aIter.Next() + */ ) { pPage = pFrm->FindPageFrm(); if( pPage ) @@ -2808,7 +2812,7 @@ void SwFlyFrmFmt::MakeFrms() SetFmtAttr( aAnchorAttr ); } break; - } + } } while ( pPage ) { @@ -2934,7 +2938,6 @@ sal_Bool SwFlyFrmFmt::GetInfo( SfxPoolItem& rInfo ) const default: return SwFrmFmt::GetInfo( rInfo ); } - return sal_True; } // #i73249# -- cgit