Kaydet (Commit) 7ec515a7 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

writerfilter: Hide more debug strings we don't need in production builds.

Change-Id: If30d3a94cd3f18bd5c4856d8a88f6c78e0da3e76
üst d67da1e7
......@@ -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
......
......@@ -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
......
......@@ -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;</xsl:text>
#endif
<xsl:call-template name="factoryactiondecls"/>
virtual void attributeAction(OOXMLFastContextHandler * pHandler, Token_t nToken, OOXMLValue::Pointer_t pValue);
......
......@@ -676,6 +676,7 @@ CreateElementMapPointer </xsl:text>
<xsl:template name="factorygetdefinename">
<xsl:text>
#ifdef DEBUG_FACTORY
string </xsl:text>
<xsl:call-template name="factoryclassname"/>
<xsl:text>::getDefineName(Id nId) const
......@@ -699,6 +700,7 @@ string </xsl:text>
return (*pMap)[nId];
}
#endif
</xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment