summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/elementlist.cxx
diff options
context:
space:
mode:
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