diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-27 10:13:34 +0100 |
---|---|---|
committer | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-27 10:13:34 +0100 |
commit | 36c323e365c3b480f10a2bb6c6227a4592f70c2a (patch) | |
tree | a405f066e25c852f729f97f874bd72d18251ed1c /unoxml/source/dom/saxbuilder.cxx | |
parent | 4e379b063e2a9cfd559d1e748e516fad3b04d44f (diff) |
RTL_CONSTASCII_USTRINGPARAM in filters 3-4
Diffstat (limited to 'unoxml/source/dom/saxbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 50b611445d7c..d6d87754eb6a 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -164,7 +164,7 @@ namespace DOM throw SAXException(); Reference< XDocumentBuilder > aBuilder(m_aServiceManager->createInstance( - OUString::createFromAscii("com.sun.star.xml.dom.DocumentBuilder")), UNO_QUERY_THROW); + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.dom.DocumentBuilder"))), UNO_QUERY_THROW); Reference< XDocument > aDocument = aBuilder->newDocument(); m_aNodeStack.push(Reference< XNode >(aDocument, UNO_QUERY)); m_aDocument = aDocument; @@ -210,12 +210,12 @@ namespace DOM attr_qname = attribs->getNameByIndex(i); attr_value = attribs->getValueByIndex(i); // new prefix mapping - if (attr_qname.indexOf(OUString::createFromAscii("xmlns:")) == 0) + if (attr_qname.indexOf(OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns:"))) == 0) { newprefix = attr_qname.copy(attr_qname.indexOf(':')+1); aNSMap.insert(NSMap::value_type(newprefix, attr_value)); } - else if (attr_qname == OUString::createFromAscii("xmlns")) + else if (attr_qname == OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns"))) { // new default prefix aNSMap.insert(NSMap::value_type(OUString(), attr_value)); @@ -300,7 +300,7 @@ namespace DOM OUString aRefName; OUString aPrefix = aElement->getPrefix(); if (aPrefix.getLength() > 0) - aRefName = aPrefix + OUString::createFromAscii(":") + aElement->getTagName(); + aRefName = aPrefix + OUString(RTL_CONSTASCII_USTRINGPARAM(":")) + aElement->getTagName(); else aRefName = aElement->getTagName(); if (aRefName != aName) // consistency check |