[Libreoffice-commits] .: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 9 22:23:23 PST 2012


 sw/source/core/layout/hffrm.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit fabf0ef1f1f8fec3a349ab5c14e3fdfc9047f376
Author: jailletc36 <christophe.jaillet at wanadoo.fr>
Date:   Fri Nov 9 14:56:12 2012 +0100

    cppCheck: remove dead assignment
    
    Change-Id: Iea8388c16de3399853dc384e7df6bfcc92170ea2
    Signed-off-by: jailletc36 <christophe.jaillet at wanadoo.fr>
    Reviewed-on: https://gerrit.libreoffice.org/1018
    Reviewed-by: Ivan Timofeev <timofeev.i.s at gmail.com>
    Tested-by: Ivan Timofeev <timofeev.i.s at gmail.com>

diff --git a/sw/source/core/layout/hffrm.cxx b/sw/source/core/layout/hffrm.cxx
index 1f496c5..1944d7b 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;


More information about the Libreoffice-commits mailing list