summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-26 16:59:44 +0200
committerNoel Grandin <noel@peralex.com>2014-05-27 08:20:12 +0200
commit0f2824b117b65bd9c9db2870edc159419ae0c1d9 (patch)
tree2e45a7d5e0d60b97bf989fd21c0ae35392ba5823 /unoxml
parent9af0abebfd61641c9d028505caa864cdf898e35b (diff)
remove more unnecessary use of OUString constructor
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/attributesmap.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx
index e3d6ebffce1a..36135ad8c378 100644
--- a/unoxml/source/dom/attributesmap.cxx
+++ b/unoxml/source/dom/attributesmap.cxx
@@ -164,8 +164,8 @@ namespace DOM
// no MutexGuard needed: m_pElement is const
Reference< XAttr > const xAttr(m_pElement->getAttributeNode(name));
if (!xAttr.is()) {
- throw DOMException(OUString(
- "CAttributesMap::removeNamedItem: no such attribute"),
+ throw DOMException(
+ "CAttributesMap::removeNamedItem: no such attribute",
static_cast<OWeakObject*>(this),
DOMExceptionType_NOT_FOUND_ERR);
}
@@ -186,8 +186,8 @@ namespace DOM
Reference< XAttr > const xAttr(
m_pElement->getAttributeNodeNS(namespaceURI, localName));
if (!xAttr.is()) {
- throw DOMException(OUString(
- "CAttributesMap::removeNamedItemNS: no such attribute"),
+ throw DOMException(
+ "CAttributesMap::removeNamedItemNS: no such attribute",
static_cast<OWeakObject*>(this),
DOMExceptionType_NOT_FOUND_ERR);
}
@@ -205,8 +205,8 @@ namespace DOM
{
Reference< XAttr > const xAttr(xNode, UNO_QUERY);
if (!xNode.is()) {
- throw DOMException(OUString(
- "CAttributesMap::setNamedItem: XAttr argument expected"),
+ throw DOMException(
+ "CAttributesMap::setNamedItem: XAttr argument expected",
static_cast<OWeakObject*>(this),
DOMExceptionType_HIERARCHY_REQUEST_ERR);
}
@@ -225,8 +225,8 @@ namespace DOM
{
Reference< XAttr > const xAttr(xNode, UNO_QUERY);
if (!xNode.is()) {
- throw DOMException(OUString(
- "CAttributesMap::setNamedItemNS: XAttr argument expected"),
+ throw DOMException(
+ "CAttributesMap::setNamedItemNS: XAttr argument expected",
static_cast<OWeakObject*>(this),
DOMExceptionType_HIERARCHY_REQUEST_ERR);
}