summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-01-24 15:43:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-01-24 15:49:55 +0100
commit22c2ffaa8a5922145fb5947864fd1ee6bd2e8584 (patch)
tree865bc4c71e69ad75b59f92664843c574c0ee0c4e /writerfilter
parentef597d80dc18f9662a50f3abad5d39d0fd76449e (diff)
writerfilter: fix build with DEBUG_FACTORY defined and enable when dbglevel==2
Change-Id: Ie56458a0f8752c21470e166735fd495c194f06ba
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/Library_writerfilter.mk1
-rw-r--r--writerfilter/source/ooxml/OOXMLFactory.cxx4
-rw-r--r--writerfilter/source/ooxml/factoryimpl.xsl4
3 files changed, 5 insertions, 4 deletions
diff --git a/writerfilter/Library_writerfilter.mk b/writerfilter/Library_writerfilter.mk
index 796c37a4e26e..63bd1a5f9bf9 100644
--- a/writerfilter/Library_writerfilter.mk
+++ b/writerfilter/Library_writerfilter.mk
@@ -47,6 +47,7 @@ $(eval $(call gb_Library_add_defs,writerfilter,\
-DDEBUG_DMAPPER_TABLE_HANDLER \
-DDEBUG_TABLE \
-DDEBUG_DMAPPER_SETTINGS_TABLE \
+ -DDEBUG_FACTORY \
) \
))
diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx
index 20fc82c75b6f..5d683cb9f0a3 100644
--- a/writerfilter/source/ooxml/OOXMLFactory.cxx
+++ b/writerfilter/source/ooxml/OOXMLFactory.cxx
@@ -269,7 +269,7 @@ OOXMLFactory::createFastChildContext(OOXMLFastContextHandler * pHandler,
ret = createFastChildContextFromFactory(pHandler, pFactory, Element);
#ifdef DEBUG_FACTORY
- debug_logger->endElement("factory.createFastChildContext");
+ debug_logger->endElement();
#endif
return ret;
@@ -292,7 +292,7 @@ void OOXMLFactory::characters(OOXMLFastContextHandler * pHandler,
}
#ifdef DEBUG_FACTORY
- debug_logger->endElement("factory.characters");
+ debug_logger->endElement();
#endif
}
diff --git a/writerfilter/source/ooxml/factoryimpl.xsl b/writerfilter/source/ooxml/factoryimpl.xsl
index f9c486e6f853..c6a7b367702d 100644
--- a/writerfilter/source/ooxml/factoryimpl.xsl
+++ b/writerfilter/source/ooxml/factoryimpl.xsl
@@ -127,7 +127,7 @@ uno::Reference&lt; xml::sax::XFastContextHandler &gt; OOXMLFactory::createFastCh
}
#ifdef DEBUG_FACTORY
- debug_logger->endElement("factory.createFastChildContextFromFactory");
+ debug_logger->endElement();
#endif
return aResult;
@@ -189,7 +189,7 @@ uno::Reference&lt; xml::sax::XFastContextHandler &gt; OOXMLFactory::createFastCh
<xsl:text>
#ifdef DEBUG_FACTORY
- debug_logger->endElement("factory.createFastChildContextFromStart");
+ debug_logger->endElement();
#endif
return aResult;
}