summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx24
1 files changed, 9 insertions, 15 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx b/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx
index f1df92340993..c89fd90c200e 100644
--- a/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx
@@ -32,10 +32,6 @@
#include "OOXMLFastTokenHandler.hxx"
#include "gperffasttoken.hxx"
-#ifdef DEBUG_TOKEN
-#include "ooxmlLoggers.hxx"
-#endif
-
namespace writerfilter {
namespace ooxml
{
@@ -62,10 +58,10 @@ OOXMLFastTokenHandler::OOXMLFastTokenHandler
nResult = pToken->nToken;
#ifdef DEBUG_TOKEN
- debug_logger->startElement(__FUNCTION__);
- debug_logger->attribute("identifier", Identifier);
- debug_logger->attribute("result", nResult);
- debug_logger->endElement(__FUNCTION__);
+ clog << "getToken: "
+ << OUStringToOString(Identifier, RTL_TEXTENCODING_ASCII_US).getStr()
+ << ", " << nResult
+ << endl;
#endif
return nResult;
@@ -111,13 +107,11 @@ css::uno::Sequence< ::sal_Int8 > SAL_CALL OOXMLFastTokenHandler::getUTF8Identifi
nResult = pToken->nToken;
#ifdef DEBUG_TOKEN
- debug_logger->startElement(__FUNCTION__);
- debug_logger->attribute
- ("utf8", string(reinterpret_cast<const char *>
- (Identifier.getConstArray()),
- Identifier.getLength()));
- debug_logger->attribute("result", nResult);
- debug_logger->endElement(__FUNCTION__);
+ clog << "getTokenFromUTF8: "
+ << string(reinterpret_cast<const char *>
+ (Identifier.getConstArray()), Identifier.getLength())
+ << ", " << nResult
+ << (pToken == NULL ? ", failed" : "") << endl;
#endif
return nResult;