summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/calcmove.cxx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2016-09-03 23:31:20 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2016-09-03 23:35:18 +0200
commitdfc2fa4a9bf9e277461d77fb4004086c089187a8 (patch)
treee35bde25630725c2a1a351942638f7467b40310c /sw/source/core/layout/calcmove.cxx
parentca504cd4ca381e5d24a82e588dac51c344c6f946 (diff)
cppcheck: variableScope
Change-Id: Idd96330afaee66dcbeddc62c93691139c2a1830d
Diffstat (limited to 'sw/source/core/layout/calcmove.cxx')
-rw-r--r--sw/source/core/layout/calcmove.cxx5
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 ) )