diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-29 19:26:49 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:32 +0200 |
commit | 705660087841a37996763bc359d244964b887218 (patch) | |
tree | 4792a555de14d2681b1d667453682c8050768723 /sw | |
parent | 394e13ea948355cc8ac73df2a636665b0296e08d (diff) |
cppcheck scope reduction in sw/.. trvlfrm.cxx
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/trvlfrm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx index 550c8a9e45b6..7261d37d586f 100644 --- a/sw/source/core/layout/trvlfrm.cxx +++ b/sw/source/core/layout/trvlfrm.cxx @@ -215,7 +215,6 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint, aPoint.Y() = Min( aPoint.Y(), Frm().Bottom() ); } - long nTextSurface, nBackSurface = 0; sal_Bool bTextRet, bBackRet = sal_False; //Koennte ein Freifliegender gemeint sein? @@ -229,6 +228,8 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint, if ( !bRet ) { + long nTextSurface = 0; + long nBackSurface = 0; SwPosition aBackPos( *pPos ); SwPosition aTextPos( *pPos ); |