diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-25 15:40:30 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-25 17:21:33 +0300 |
commit | ab2cc86cf5d69bfaf765f3d4aa314dcb5339f533 (patch) | |
tree | 16ca5d2316fe05b1dfa05e06a878229115a27220 | |
parent | bfdb63316b050de47a8f123d17c571daacd9985b (diff) |
WaE: unreachable code
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
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<SwFrm,SwCntntNode> 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# |