diff options
author | jailletc36 <christophe.jaillet@wanadoo.fr> | 2012-11-09 14:56:12 +0100 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-11-10 06:23:02 +0000 |
commit | fabf0ef1f1f8fec3a349ab5c14e3fdfc9047f376 (patch) | |
tree | 10e95b522ced4ae9e513de0c116b4788bdeb6c71 /sw | |
parent | bee51e6bb9d400fbf75ed47f7f2ac755ec05f28d (diff) |
cppCheck: remove dead assignment
Change-Id: Iea8388c16de3399853dc384e7df6bfcc92170ea2
Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr>
Reviewed-on: https://gerrit.libreoffice.org/1018
Reviewed-by: Ivan Timofeev <timofeev.i.s@gmail.com>
Tested-by: Ivan Timofeev <timofeev.i.s@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/hffrm.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/layout/hffrm.cxx b/sw/source/core/layout/hffrm.cxx index 1f496c5231f6..1944d7b94a4c 100644 --- a/sw/source/core/layout/hffrm.cxx +++ b/sw/source/core/layout/hffrm.cxx @@ -74,11 +74,10 @@ static SwTwips lcl_GetFrmMinHeight(const SwLayoutFrm & rFrm) static SwTwips lcl_CalcContentHeight(SwLayoutFrm & frm) { - SwFrm* pFrm = frm.Lower(); - SwTwips nRemaining = 0; sal_uInt16 nNum = 0; - pFrm = frm.Lower(); + SwFrm* pFrm = frm.Lower(); + while ( pFrm ) { SwTwips nTmp; |