[Libreoffice-commits] core.git: 2 commits - sd/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Sun Oct 30 23:06:59 UTC 2016


 sd/source/filter/eppt/pptx-epptooxml.cxx |    2 --
 sd/source/ui/sidebar/LayoutMenu.cxx      |    2 --
 2 files changed, 4 deletions(-)

New commits:
commit 18658fff26edfc2169b014d6cefe7c7987c26320
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Oct 30 20:56:01 2016 +0100

    cppcheck unreadVariable: nCount
    
    unused since commit debafc2c17b957ff2edc8821bf0f615816645e94
    
    Change-Id: Ida1da503739454a1fb67b4d0df3067060c2738e5
    Reviewed-on: https://gerrit.libreoffice.org/30409
    Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
    Tested-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>

diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index ce4af32..8069c7a 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1738,12 +1738,10 @@ void PowerPointExport::ImplWriteSlideMaster( sal_uInt32 nPageNum, Reference< XPr
     // use master's id type as they have same range, mso does that as well
     pFS->startElementNS( XML_p, XML_sldLayoutIdLst, FSEND );
 
-    int nCount = 0;
     for( int i = 0; i < LAYOUT_SIZE; i++) {
         sal_Int32 nLayoutFileId = GetLayoutFileId( i, nPageNum );
         if( nLayoutFileId > 0 ) {
             AddLayoutIdAndRelation( pFS, nLayoutFileId );
-            nCount++;
         } else {
             ImplWritePPTXLayout( i, nPageNum );
             AddLayoutIdAndRelation( pFS, GetLayoutFileId( i, nPageNum ) );
commit cd252e2f014c91ca01bf48cf716f9c984214f679
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Oct 30 20:15:26 2016 +0100

    cppcheck unreadVariable: n
    
    since initial commit d02f75a8c36705924ddd6a5921fe3012fafce812
    
    Change-Id: I51d56485f4b6224a1b7ce16b0788e7e884d57b37
    Reviewed-on: https://gerrit.libreoffice.org/30408
    Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
    Tested-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>

diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index 2bbd513..b9b99ba5 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -544,7 +544,6 @@ void LayoutMenu::Fill()
     }
 
     Clear();
-    int n = 0;
     for (sal_uInt16 i=1; pInfo!=nullptr&&pInfo->mnBmpResId!=0; i++,pInfo++)
     {
         if ((WritingMode_TB_RL != pInfo->meWritingMode) || bVertical)
@@ -556,7 +555,6 @@ void LayoutMenu::Fill()
 
             InsertItem(i, Image(aBmp), SdResId (pInfo->mnStrResId));
             SetItemData (i, new AutoLayout(pInfo->maAutoLayout));
-            n++;
         }
     }
 


More information about the Libreoffice-commits mailing list