[Libreoffice-commits] .: sd/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Dec 8 04:37:14 PST 2010


 sd/source/filter/eppt/pptx-epptooxml.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit f4eaf0ee1d2c93c5a6cd7212d0a2f5ab0b1f2fba
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Dec 8 12:37:07 2010 +0000

    WaE, remove warnings

diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 8f13148..643b1f1 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1518,7 +1518,7 @@ sal_Int32 PowerPointExport::GetLayoutFileId( sal_Int32 nOffset, sal_uInt32 nMast
     return mLayoutInfo[ nOffset ].mnFileIdArray[ nMasterNum ];
 }
 
-void PowerPointExport::ImplWriteLayout( sal_Int32 nOffset, sal_uInt32 nMasterNum )
+void PowerPointExport::ImplWriteLayout( sal_Int32 /*nOffset*/, sal_uInt32 /*nMasterNum*/ )
 {
     // we write all the layouts together with master(s)
     // ImplWritePPTXLayout( GetPPTXLayoutId( nOffset ), nMasterNum );
@@ -1534,8 +1534,11 @@ void PowerPointExport::ImplWritePPTXLayout( sal_Int32 nOffset, sal_uInt32 nMaste
     Reference< container::XIndexAccess > xIndexAccess( xDrawPages, uno::UNO_QUERY );
 
     xSlide = xDrawPages->insertNewByIndex( xIndexAccess->getCount() );
+
+#ifdef DEBUG
     if( xSlide.is() )
-        DBG(printf("new page created\n"));
+        printf("new page created\n");
+#endif
 
     Reference< beans::XPropertySet > xPropSet( xSlide, uno::UNO_QUERY );
     xPropSet->setPropertyValue( US( "Layout" ), makeAny( short( aLayoutInfo[ nOffset ].nType ) ) );


More information about the Libreoffice-commits mailing list