diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-23 20:15:34 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-27 12:46:01 +0200 |
commit | dccf807b7585c0b73700c54642c37821c0836ae3 (patch) | |
tree | 1c3dc7b3b9b1c9779ea38f24bcd7c6d89338d1e8 /unoxml | |
parent | 35eb21d563418bdd664677d073c5653ace3da957 (diff) |
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>
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/attributesmap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 |