[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Mar 9 00:25:50 PST 2012


 writerfilter/source/dmapper/NumberingManager.cxx |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

New commits:
commit 401a834e0bb5b9a1fdf4d8648cb7c630ce452459
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri Mar 9 09:26:05 2012 +0100

    writerfilter: ifdef + fprintf -> SAL_INFO

diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index a3b0e7e..85ef2f2 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -16,9 +16,7 @@
 #include <com/sun/star/text/PositionAndSpaceMode.hpp>
 #include <com/sun/star/text/XChapterNumberingSupplier.hpp>
 
-#if DEBUG
-#include <stdio.h>
-#endif
+#include <rtl/oustringostreaminserter.hxx>
 
 #include "dmapperLoggers.hxx"
 
@@ -53,11 +51,7 @@ void lcl_printProperties( uno::Sequence< beans::PropertyValue > aProps )
         if ( !( aValue >>= sValue ) && ( aValue >>= nValue ) )
             sValue = OUString::valueOf( nValue );
 
-#if DEBUG
-        fprintf( stderr, "Property %s: %s\n",
-                OUSTR_TO_C( aProps[i].Name ),
-                OUSTR_TO_C( sValue ) );
-#endif
+        SAL_INFO("writerfilter", "Property " << aProps[i].Name << ": " << sValue);
     }
 }
 
@@ -534,7 +528,9 @@ void ListDef::CreateNumberingRules( DomainMapper& rDMapper,
                 // Get the merged level properties
                 uno::Sequence< beans::PropertyValue > aLvlProps = aProps[sal_Int32( nLevel )];
 
+#if DEBUG
                 lcl_printProperties( aLvlProps );
+#endif
 
                 // Get the char style
                 uno::Sequence< beans::PropertyValue > aAbsCharStyleProps = pAbsLevel->GetCharStyleProperties( );


More information about the Libreoffice-commits mailing list