[Libreoffice-commits] core.git: editeng/source

Julien Nabet serval2412 at yahoo.fr
Sat Mar 23 08:52:58 PDT 2013


 editeng/source/outliner/outliner.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 6408f363bf77319228739cba69ab1bd08499e380
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 23 16:50:30 2013 +0100

    coverity#704225 Logically dead code
    
    Change-Id: I9aa41653b9622245de8084443ef3e0b74f720571

diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 3976d1b..f2217eb 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1917,7 +1917,6 @@ void Outliner::ImplCalcBulletText( sal_uInt16 nPara, sal_Bool bRecalcLevel, sal_
     DBG_CHKTHIS(Outliner,0);
 
     Paragraph* pPara = pParaList->GetParagraph( nPara );
-    sal_uInt16 nRelPos = 0xFFFF;
 
     while ( pPara )
     {
@@ -1944,9 +1943,6 @@ void Outliner::ImplCalcBulletText( sal_uInt16 nPara, sal_Bool bRecalcLevel, sal_
 
         if ( bRecalcLevel )
         {
-            if ( nRelPos != 0xFFFF )
-                nRelPos++;
-
             sal_Int16 nDepth = pPara->GetDepth();
             pPara = pParaList->GetParagraph( ++nPara );
             if ( !bRecalcChildren )


More information about the Libreoffice-commits mailing list