From 7ec515a7162d886cba611067cc6b4577aaf270a4 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 16 Apr 2014 17:43:43 +0200 Subject: writerfilter: Hide more debug strings we don't need in production builds. Change-Id: If30d3a94cd3f18bd5c4856d8a88f6c78e0da3e76 --- writerfilter/source/ooxml/OOXMLFactory.cxx | 2 ++ writerfilter/source/ooxml/OOXMLFactory.hxx | 2 +- writerfilter/source/ooxml/factory_ns.xsl | 2 ++ writerfilter/source/ooxml/factoryimpl_ns.xsl | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) (limited to 'writerfilter') diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx index 8e2fa15bc0e1..1f778c3295a3 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.cxx +++ b/writerfilter/source/ooxml/OOXMLFactory.cxx @@ -85,10 +85,12 @@ TokenToIdMapPointer OOXMLFactory_ns::getTokenToIdMap(Id nId) return m_TokenToIdsMap[nId]; } +#ifdef DEBUG_FACTORY string OOXMLFactory_ns::getDefineName(Id /*nId*/) const { return ""; } +#endif // class OOXMLFactory diff --git a/writerfilter/source/ooxml/OOXMLFactory.hxx b/writerfilter/source/ooxml/OOXMLFactory.hxx index 346b02323cca..76909767839e 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.hxx +++ b/writerfilter/source/ooxml/OOXMLFactory.hxx @@ -102,8 +102,8 @@ public: virtual void charactersAction(OOXMLFastContextHandler * pHandler, const OUString & rString); virtual void endAction(OOXMLFastContextHandler * pHandler); virtual void attributeAction(OOXMLFastContextHandler * pHandler, Token_t nToken, OOXMLValue::Pointer_t pValue); - virtual string getDefineName(Id nId) const; #ifdef DEBUG_FACTORY + virtual string getDefineName(Id nId) const; virtual string getName() const; #endif diff --git a/writerfilter/source/ooxml/factory_ns.xsl b/writerfilter/source/ooxml/factory_ns.xsl index 2815078d979a..a657215d1c68 100644 --- a/writerfilter/source/ooxml/factory_ns.xsl +++ b/writerfilter/source/ooxml/factory_ns.xsl @@ -86,7 +86,9 @@ public: virtual ListValueMapPointer createListValueMap(Id nId); virtual CreateElementMapPointer createCreateElementMap(Id nId); virtual TokenToIdMapPointer createTokenToIdMap(Id nId); +#ifdef DEBUG_FACTORY virtual string getDefineName(Id nId) const; +#endif virtual void attributeAction(OOXMLFastContextHandler * pHandler, Token_t nToken, OOXMLValue::Pointer_t pValue); diff --git a/writerfilter/source/ooxml/factoryimpl_ns.xsl b/writerfilter/source/ooxml/factoryimpl_ns.xsl index 8d5f565e8318..9cb8912dc72a 100644 --- a/writerfilter/source/ooxml/factoryimpl_ns.xsl +++ b/writerfilter/source/ooxml/factoryimpl_ns.xsl @@ -676,6 +676,7 @@ CreateElementMapPointer +#ifdef DEBUG_FACTORY string ::getDefineName(Id nId) const @@ -699,6 +700,7 @@ string return (*pMap)[nId]; } +#endif -- cgit