summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-06 12:31:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-06 12:31:23 +0200
commit3224f26cfed1963994db53172a70f332068ae41e (patch)
tree4e1dd7576a1392fb510aa866c0ee596e3c2300a5 /unoxml
parent4e182284510a5fc76c1343bfa432780dc4cd609d (diff)
OSL_TRACE->SAL in unotools..uui
Change-Id: I7f391604401b8a10f5d451673ed6223c031c56ab
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/qa/unit/domtest.cxx2
-rw-r--r--unoxml/source/dom/attr.cxx4
-rw-r--r--unoxml/source/dom/node.cxx7
3 files changed, 7 insertions, 6 deletions
diff --git a/unoxml/qa/unit/domtest.cxx b/unoxml/qa/unit/domtest.cxx
index a01e59eb95b1..f6b940ba65bf 100644
--- a/unoxml/qa/unit/domtest.cxx
+++ b/unoxml/qa/unit/domtest.cxx
@@ -173,7 +173,7 @@ struct TokenHandler
{
virtual ::sal_Int32 SAL_CALL getTokenFromUTF8( const uno::Sequence< ::sal_Int8 >& Identifier ) throw (uno::RuntimeException) override
{
- OSL_TRACE("getTokenFromUTF8() %s", reinterpret_cast<const char*>(Identifier.getConstArray()));
+ SAL_INFO("unoxml", "getTokenFromUTF8() " << reinterpret_cast<const char*>(Identifier.getConstArray()));
return Identifier.getLength() ? Identifier[0] : 0;
}
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index 5d53151f2ba4..ed2a87ccbdd6 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -63,7 +63,9 @@ namespace DOM
}
pNs = xmlSearchNsByHref(pNode->doc, pNode, pUri);
// if (!pNs) hmm... now what? throw?
- if (!pNs) { OSL_TRACE("CAtttr: cannot create namespace"); }
+ if (!pNs) {
+ SAL_WARN("unoxml", "CAtttr: cannot create namespace");
+ }
return pNs;
}
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 77288d7365ff..f95582778bc9 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -82,8 +82,8 @@ namespace DOM
strlen(reinterpret_cast<const char*>(pHref)),
RTL_TEXTENCODING_UTF8);
- OSL_TRACE("Trying to add namespace %s (prefix %s)",
- reinterpret_cast<const char*>(pHref), reinterpret_cast<const char*>(pPrefix));
+ SAL_INFO("unoxml", "Trying to add namespace " << reinterpret_cast<const char*>(pHref) <<
+ "(prefix " << reinterpret_cast<const char*>(pPrefix) << ")" );
Context::NamespaceMapType::iterator aIter=
io_rContext.maNamespaceMap.find(val);
@@ -113,8 +113,7 @@ namespace DOM
OString prefix(pPrefix,
strlen(reinterpret_cast<const char*>(pPrefix)));
- OSL_TRACE("getTokenWithPrefix(): prefix %s, name %s",
- pPrefix, pName);
+ SAL_INFO("unoxml", "getTokenWithPrefix(): prefix " << pPrefix << ", name " << pName);
Context::NamespaceVectorType::value_type::const_iterator aIter;
if( (aIter=std::find_if(rContext.maNamespaces.back().begin(),