diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-10-21 16:36:51 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-10-21 16:37:53 +0200 |
commit | 4d837ff3d0a4121216800eb88e7f48c336a5fb03 (patch) | |
tree | 88ad4ced211755be5a130b72a4670447562fd85f /sw | |
parent | 9b53538a076a2370df975655c8579dfe09cff09b (diff) |
Fix Variable "X" is reassigned a value before the old one has been used
Change-Id: I293b42d075d9c680a781a3bb993f05f4d7d62208
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/findfrm.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx index 555ac8acf807..fa07f8f22161 100644 --- a/sw/source/core/layout/findfrm.cxx +++ b/sw/source/core/layout/findfrm.cxx @@ -334,9 +334,9 @@ const SwLayoutFrm *SwFrm::ImplGetNextLayoutLeaf( bool bFwd ) const bool bGoingUp = !bFwd; // false for forward, true for backward do { - bool bGoingFwdOrBwd = false, bGoingDown = false; + bool bGoingFwdOrBwd = false; - bGoingDown = ( !bGoingUp && ( 0 != (p = lcl_GetLower( pFrm, bFwd ) ) ) ); + bool bGoingDown = ( !bGoingUp && ( 0 != (p = lcl_GetLower( pFrm, bFwd ) ) ) ); if ( !bGoingDown ) { // I cannot go down, because either I'm currently going up or @@ -394,9 +394,9 @@ const SwCntntFrm* SwCntntFrm::ImplGetNextCntntFrm( bool bFwd ) const sal_Bool bGoingUp = sal_False; do { const SwFrm *p = 0; - sal_Bool bGoingFwdOrBwd = sal_False, bGoingDown = sal_False; + sal_Bool bGoingFwdOrBwd = sal_False; - bGoingDown = ( !bGoingUp && ( 0 != ( p = lcl_GetLower( pFrm, true ) ) ) ); + sal_Bool bGoingDown = ( !bGoingUp && ( 0 != ( p = lcl_GetLower( pFrm, true ) ) ) ); if ( !bGoingDown ) { bGoingFwdOrBwd = ( 0 != ( p = lcl_FindLayoutFrame( pFrm, bFwd ) ) ); |