unoxml/source/dom/attributesmap.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit dccf807b7585c0b73700c54642c37821c0836ae3 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Apr 23 20:15:34 2023 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sat May 27 12:46:01 2023 +0200 Use getXWeak in unoxml Change-Id: I141bad0d1b244bd801f613f159b79c4518fdf252 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150883 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx index b11dcc6a1e01..f629d4cb3f31 100644 --- a/unoxml/source/dom/attributesmap.cxx +++ b/unoxml/source/dom/attributesmap.cxx @@ -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