From 0f2824b117b65bd9c9db2870edc159419ae0c1d9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 May 2014 16:59:44 +0200 Subject: remove more unnecessary use of OUString constructor Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba --- unoxml/source/dom/attributesmap.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'unoxml/source') 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(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(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(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(this), DOMExceptionType_HIERARCHY_REQUEST_ERR); } -- cgit