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

Julien Nabet serval2412 at yahoo.fr
Sat Mar 23 09:11:24 PDT 2013


 filter/source/msfilter/svdfppt.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 165ef402c07cfcec87c41bca67faa795580cf2ea
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 23 17:08:10 2013 +0100

    Related coverity#704229 Logically dead code
    
    pVDev not used since ad3ccbb2192c96bdcc268fcf0c322c693275eeb0 (09/02/2011)
    
    Change-Id: I210b91abc4ac883272119c88a437f9d60781667a

diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index db41aed..943bcae 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -2115,7 +2115,6 @@ sal_Bool SdrPowerPointImport::ReadFontCollection()
         if ( SeekToRec( rStCtrl, PPT_PST_FontCollection, pEnvHd->GetRecEndFilePos(), &aListHd ) )
         {
             sal_uInt16 nCount2 = 0;
-            VirtualDevice* pVDev = NULL;
             while ( SeekToRec( rStCtrl, PPT_PST_FontEntityAtom, aListHd.GetRecEndFilePos() ) )
             {
                 bRet = sal_True;
@@ -2147,7 +2146,6 @@ sal_Bool SdrPowerPointImport::ReadFontCollection()
                 };
                 pFonts->insert( pFonts->begin() + nCount2++, pFont );
             }
-            delete pVDev;
         }
         rStCtrl.Seek( nFPosMerk ); // restore FilePos
     }


More information about the Libreoffice-commits mailing list