Use getXWeak in unoxml
Change-Id: I141bad0d1b244bd801f613f159b79c4518fdf252 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150883 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -164,7 +164,7 @@ namespace DOM
|
||||
if (!xAttr.is()) {
|
||||
throw DOMException(
|
||||
"CAttributesMap::removeNamedItem: no such attribute",
|
||||
static_cast<OWeakObject*>(this),
|
||||
getXWeak(),
|
||||
DOMExceptionType_NOT_FOUND_ERR);
|
||||
}
|
||||
return m_pElement->removeAttributeNode(xAttr);
|
||||
@@ -183,7 +183,7 @@ namespace DOM
|
||||
if (!xAttr.is()) {
|
||||
throw DOMException(
|
||||
"CAttributesMap::removeNamedItemNS: no such attribute",
|
||||
static_cast<OWeakObject*>(this),
|
||||
getXWeak(),
|
||||
DOMExceptionType_NOT_FOUND_ERR);
|
||||
}
|
||||
return m_pElement->removeAttributeNode(xAttr);
|
||||
@@ -199,7 +199,7 @@ namespace DOM
|
||||
if (!xNode.is()) {
|
||||
throw DOMException(
|
||||
"CAttributesMap::setNamedItem: XAttr argument expected",
|
||||
static_cast<OWeakObject*>(this),
|
||||
getXWeak(),
|
||||
DOMExceptionType_HIERARCHY_REQUEST_ERR);
|
||||
}
|
||||
// no MutexGuard needed: m_pElement is const
|
||||
@@ -216,7 +216,7 @@ namespace DOM
|
||||
if (!xNode.is()) {
|
||||
throw DOMException(
|
||||
"CAttributesMap::setNamedItemNS: XAttr argument expected",
|
||||
static_cast<OWeakObject*>(this),
|
||||
getXWeak(),
|
||||
DOMExceptionType_HIERARCHY_REQUEST_ERR);
|
||||
}
|
||||
// no MutexGuard needed: m_pElement is const
|
||||
|
||||
Reference in New Issue
Block a user