[Libreoffice-commits] .: oox/inc oox/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Feb 24 01:08:09 PST 2012


 oox/inc/oox/helper/propertymap.hxx |    2 ++
 oox/source/helper/propertymap.cxx  |    2 ++
 2 files changed, 4 insertions(+)

New commits:
commit 15af96ffec893cd2b1df734fd61e79feae5e2976
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri Feb 24 10:08:04 2012 +0100

    oox: guard dbgutil-only methods with ifdef

diff --git a/oox/inc/oox/helper/propertymap.hxx b/oox/inc/oox/helper/propertymap.hxx
index eda19e4..2696d49 100644
--- a/oox/inc/oox/helper/propertymap.hxx
+++ b/oox/inc/oox/helper/propertymap.hxx
@@ -100,8 +100,10 @@ public:
                         makePropertySet() const;
 
 #if OSL_DEBUG_LEVEL > 0
+#ifdef DBG_UTIL
   static void dump( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet);
   void dump();
+#endif
   static void dumpCode( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet);
   void dumpCode();
 #endif
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 8923d9c..dcc3a83 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -431,6 +431,7 @@ static void lclDumpAnyValue( Any value)
       fprintf (stderr,"???           <unhandled type %s>\n", USS(value.getValueTypeName()));
 }
 
+#ifdef DBG_UTIL
 void PropertyMap::dump( Reference< XPropertySet > rXPropSet )
 {
     Reference< XPropertySetInfo > info = rXPropSet->getPropertySetInfo ();
@@ -454,6 +455,7 @@ void PropertyMap::dump()
 {
     dump( Reference< XPropertySet >( makePropertySet(), UNO_QUERY ) );
 }
+#endif
 
 static void printLevel (int level)
 {


More information about the Libreoffice-commits mailing list