summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/elementlist.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-16 15:47:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-16 20:17:39 +0100
commit9bd827270646be509060ddb92be4eae20b277b91 (patch)
treef68cb9b3296620ba15fc0efa57787176374abe80 /unoxml/source/dom/elementlist.cxx
parent1607033e581ee1fc4aab5564cbf8fa89d7094ec7 (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/elementlist.cxx')
-rw-r--r--unoxml/source/dom/elementlist.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index 290438b2ca28..c0ffb0f87929 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -176,9 +176,7 @@ namespace DOM
if (m_nodevector.size() <= o3tl::make_unsigned(index)) {
throw RuntimeException();
}
- Reference< XNode > const xRet(
- m_pElement->GetOwnerDocument().GetCNode(m_nodevector[index]).get());
- return xRet;
+ return m_pElement->GetOwnerDocument().GetCNode(m_nodevector[index]);
}
// tree mutations can change the list