diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-16 15:47:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 20:17:39 +0100 |
commit | 9bd827270646be509060ddb92be4eae20b277b91 (patch) | |
tree | f68cb9b3296620ba15fc0efa57787176374abe80 /unoxml/source/dom/node.cxx | |
parent | 1607033e581ee1fc4aab5564cbf8fa89d7094ec7 (diff) |
loplugin:referencecasting in UnoControls..unoxml
Change-Id: I42f216b6115be693a4e57d70f6cbbf11b62ec185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110998
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml/source/dom/node.cxx')
-rw-r--r-- | unoxml/source/dom/node.cxx | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index 68a834c1a8b4..8abe73e707b3 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -371,7 +371,7 @@ namespace DOM // dispatch subtree modified for this node dispatchSubtreeModified(); - return pNode.get(); + return pNode; } /** @@ -389,7 +389,7 @@ namespace DOM xmlCopyNode(m_aNodePtr, bDeep ? 1 : 0)); if (!pNode.is()) { return nullptr; } pNode->m_bUnlinked = true; // not linked yet - return pNode.get(); + return pNode; } /** @@ -426,9 +426,7 @@ namespace DOM if (nullptr == m_aNodePtr) { return nullptr; } - Reference< XNode > const xNode( - GetOwnerDocument().GetCNode(m_aNodePtr->children).get()); - return xNode; + return GetOwnerDocument().GetCNode(m_aNodePtr->children); } /** @@ -441,9 +439,7 @@ namespace DOM if (nullptr == m_aNodePtr) { return nullptr; } - Reference< XNode > const xNode( - GetOwnerDocument().GetCNode(xmlGetLastChild(m_aNodePtr)).get()); - return xNode; + return GetOwnerDocument().GetCNode(xmlGetLastChild(m_aNodePtr)); } /** @@ -484,9 +480,7 @@ namespace DOM if (nullptr == m_aNodePtr) { return nullptr; } - Reference< XNode > const xNode( - GetOwnerDocument().GetCNode(m_aNodePtr->next).get()); - return xNode; + return GetOwnerDocument().GetCNode(m_aNodePtr->next); } /** @@ -557,9 +551,7 @@ namespace DOM if (nullptr == m_aNodePtr) { return nullptr; } - Reference< XNode > const xNode( - GetOwnerDocument().GetCNode(m_aNodePtr->parent).get()); - return xNode; + return GetOwnerDocument().GetCNode(m_aNodePtr->parent); } /** @@ -592,9 +584,7 @@ namespace DOM if (nullptr == m_aNodePtr) { return nullptr; } - Reference< XNode > const xNode( - GetOwnerDocument().GetCNode(m_aNodePtr->prev).get()); - return xNode; + return GetOwnerDocument().GetCNode(m_aNodePtr->prev); } /** |