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

Compile the debugging strings in only if we are about to use them.

Saves us tons of string literals.

Change-Id: Ieb7ac52e7493d692e7ed56552350b8781ec6b500
üst f62b06eb
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
<xsl:text> <xsl:text>
void QNameToString::init_ooxml() void QNameToString::init_ooxml()
{ {
#ifdef DEBUG_LOGGING
/* ooxml */ /* ooxml */
</xsl:text> </xsl:text>
<xsl:for-each select="//@tokenid"> <xsl:for-each select="//@tokenid">
...@@ -75,6 +76,7 @@ void QNameToString::init_ooxml() ...@@ -75,6 +76,7 @@ void QNameToString::init_ooxml()
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
<xsl:text> <xsl:text>
#endif
} }
</xsl:text> </xsl:text>
</xsl:template> </xsl:template>
......
...@@ -33,14 +33,12 @@ QNameToString::Pointer_t QNameToString::Instance() ...@@ -33,14 +33,12 @@ QNameToString::Pointer_t QNameToString::Instance()
string QNameToString::operator()(Id qName) string QNameToString::operator()(Id qName)
{ {
string sResult;
Map::const_iterator aIt = mMap.find(qName); Map::const_iterator aIt = mMap.find(qName);
if (aIt != mMap.end()) if (aIt != mMap.end())
sResult = aIt->second; return aIt->second;
return mMap[qName]; return string();
} }
QNameToString::QNameToString() QNameToString::QNameToString()
......
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