[Libreoffice-commits] .: writerfilter/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Wed Dec 8 01:30:47 PST 2010


 writerfilter/source/ooxml/OOXMLFastContextHandler.cxx |   18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

New commits:
commit 434de2c15a2c7ebf5d7dd0f128866a24414a8ac6
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Wed Dec 8 10:29:45 2010 +0100

    Removed some useless debug output that are slowing docx import

diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 35e9f3e..3486c56 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -1139,7 +1139,7 @@ void OOXMLFastContextHandler::resolvePropertySetAttrs()
 void OOXMLFastContextHandler::sendPropertyToParent()
 {
 #ifdef DEBUG_ELEMENT
-    debug_logger->startElement("sendPropertyToParent");
+    debug_logger->element("sendPropertyToParent");
 #endif
 
     if (mpParent != NULL)
@@ -1152,17 +1152,8 @@ void OOXMLFastContextHandler::sendPropertyToParent()
                 pProp(new OOXMLPropertyImpl(mId, getValue(),
                                             OOXMLPropertyImpl::SPRM));
             pProps->add(pProp);
-
-#ifdef DEBUG_ELEMENT
-            debug_logger->propertySet(pProps,
-                    IdToString::Pointer_t(new OOXMLIdToString()));
-#endif
         }
     }
-
-#ifdef DEBUG_ELEMENT
-    debug_logger->endElement();
-#endif
 }
 
 void OOXMLFastContextHandler::sendPropertiesToParent()
@@ -1178,13 +1169,6 @@ void OOXMLFastContextHandler::sendPropertiesToParent()
         {
             OOXMLPropertySet::Pointer_t pProps(getPropertySet());
 
-#ifdef DEBUG_ELEMENT
-            debug_logger->startElement("me");
-            debug_logger->propertySet(pProps,
-                    IdToString::Pointer_t(new OOXMLIdToString()));
-            debug_logger->endElement();
-#endif
-
             if (pProps.get() != NULL)
             {
                 OOXMLValue::Pointer_t pValue


More information about the Libreoffice-commits mailing list