diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2016-09-03 23:31:20 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2016-09-03 23:35:18 +0200 |
commit | dfc2fa4a9bf9e277461d77fb4004086c089187a8 (patch) | |
tree | e35bde25630725c2a1a351942638f7467b40310c | |
parent | ca504cd4ca381e5d24a82e588dac51c344c6f946 (diff) |
cppcheck: variableScope
Change-Id: Idd96330afaee66dcbeddc62c93691139c2a1830d
-rw-r--r-- | sw/source/core/layout/calcmove.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx index 8afb53c748e1..ef51393c4228 100644 --- a/sw/source/core/layout/calcmove.cxx +++ b/sw/source/core/layout/calcmove.cxx @@ -1248,14 +1248,13 @@ void SwContentFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/) SWRECTFN( this ) - bool bMoveable; - while ( !mbValidPos || !mbValidSize || !mbValidPrtArea ) { // - loop prevention SwRect aOldFrame_StopFormat( Frame() ); SwRect aOldPrt_StopFormat( Prt() ); - if ( (bMoveable = IsMoveable()) ) + bool bMoveable = IsMoveable(); + if (bMoveable) { SwFrame *pPre = GetIndPrev(); if ( CheckMoveFwd( bMakePage, bKeep, bMovedBwd ) ) |