summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/document.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-06-01 17:19:58 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-06-01 17:40:03 +0100
commitff43ad1a77a89d1d1ebc0c20807bb9ec508fc9fd (patch)
treedaca69d3fceb0a7ec682360418033cf0126a6e95 /unoxml/source/dom/document.cxx
parentfcc31f1749e01e4184c4347929a9e1d7e782dee1 (diff)
targetted string cleanup
Change-Id: Iaf77bb427d62d7f3be00a96cba4dfb25a01934ac
Diffstat (limited to 'unoxml/source/dom/document.cxx')
-rw-r--r--unoxml/source/dom/document.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index ce8a4c51e00e..4755511cb86d 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -808,8 +808,7 @@ namespace DOM
if (!aNsUri.isEmpty())
{
if (!aNsPrefix.isEmpty()) {
- aQName = aNsPrefix + OUString(RTL_CONSTASCII_USTRINGPARAM(":"))
- + aQName;
+ aQName = aNsPrefix + ":" + aQName;
}
xNewElement = xDocument->createElementNS(aNsUri, aQName);
} else {
@@ -831,8 +830,7 @@ namespace DOM
if (!aAttrUri.isEmpty())
{
if (!aAttrPrefix.isEmpty()) {
- aAttrName = aAttrPrefix +
- OUString(RTL_CONSTASCII_USTRINGPARAM(":")) + aAttrName;
+ aAttrName = aAttrPrefix + ":" + aAttrName;
}
xNewElement->setAttributeNS(
aAttrUri, aAttrName, sValue);
@@ -905,11 +903,9 @@ namespace DOM
{
Reference< XDocumentEvent > const xDocevent(xDocument, UNO_QUERY);
Reference< XMutationEvent > const event(xDocevent->createEvent(
- OUString(RTL_CONSTASCII_USTRINGPARAM("DOMNodeInsertedIntoDocument"))),
- UNO_QUERY_THROW);
+ "DOMNodeInsertedIntoDocument"), UNO_QUERY_THROW);
event->initMutationEvent(
- OUString(RTL_CONSTASCII_USTRINGPARAM("DOMNodeInsertedIntoDocument"))
- , sal_True, sal_False, Reference< XNode >(),
+ "DOMNodeInsertedIntoDocument", sal_True, sal_False, Reference< XNode >(),
OUString(), OUString(), OUString(), (AttrChangeType)0 );
Reference< XEventTarget > const xDocET(xDocument, UNO_QUERY);
xDocET->dispatchEvent(Reference< XEvent >(event, UNO_QUERY));
@@ -949,11 +945,10 @@ namespace DOM
return xNode;
}
-
OUString SAL_CALL CDocument::getNodeName()throw (RuntimeException)
{
// does not need mutex currently
- return OUString(RTL_CONSTASCII_USTRINGPARAM("#document"));
+ return OUString("#document");
}
OUString SAL_CALL CDocument::getNodeValue() throw (RuntimeException)