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/childlist.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/childlist.cxx')
-rw-r--r-- | unoxml/source/dom/childlist.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unoxml/source/dom/childlist.cxx b/unoxml/source/dom/childlist.cxx index ec3811fa9161..6f62f0144dbb 100644 --- a/unoxml/source/dom/childlist.cxx +++ b/unoxml/source/dom/childlist.cxx @@ -75,8 +75,7 @@ namespace DOM while (cur != nullptr) { if (index-- == 0) { - return Reference< XNode >( - m_pNode->GetOwnerDocument().GetCNode(cur).get()); + return m_pNode->GetOwnerDocument().GetCNode(cur); } cur = cur->next; } |