[Libreoffice-commits] .: sw/source

David Tardon dtardon at kemper.freedesktop.org
Mon Dec 27 00:34:48 PST 2010


 sw/source/core/crsr/swcrsr.cxx  |    2 ++
 sw/source/core/crsr/trvltbl.cxx |    3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 7b6b01c257b57dc63a35974c13b34ef9ea2226c8
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Dec 27 09:32:59 2010 +0100

    cppcheck cleaning in writer

diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index 3dec37b..3842154 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -997,6 +997,7 @@ ULONG SwCursor::FindAll( SwFindParas& rParas,
             }
             else
                 DeleteMark();
+            delete pSav;
             return 0;
         }
 
@@ -1051,6 +1052,7 @@ ULONG SwCursor::FindAll( SwFindParas& rParas,
             }
             else
                 DeleteMark();
+            delete pSav;
             return 0;
         }
         // es  wurde ein- bis mehrmals gefunden. Das steht alles
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx
index f466c34..fc6266e 100644
--- a/sw/source/core/crsr/trvltbl.cxx
+++ b/sw/source/core/crsr/trvltbl.cxx
@@ -120,8 +120,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine )
 BOOL SwCrsrShell::GoPrevCell()
 {
     BOOL bRet = FALSE;
-    const SwTableNode* pTblNd;
-    if( IsTableMode() || 0 != ( pTblNd = IsCrsrInTbl() ))
+    if( IsTableMode() || IsCrsrInTbl() )
     {
         SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr;
         SwCallLink aLk( *this );		// Crsr-Moves ueberwachen,


More information about the Libreoffice-commits mailing list