summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/node.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-01-19 20:27:24 +0100
committerMichael Stahl <mst@openoffice.org>2011-01-19 20:27:24 +0100
commitaa85497de77acae2c9e58d7339584dcd7665e425 (patch)
tree927dc441175ad182c6c8bad866e52a0bf9c6117b /unoxml/source/dom/node.cxx
parentcb42fe10fa5cdefe902e63c735ddf508c68c84e2 (diff)
xmlfix3: unoxml: fix CChildList: member pointer does not keep document alive
Diffstat (limited to 'unoxml/source/dom/node.cxx')
-rw-r--r--unoxml/source/dom/node.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 3554811d8b45..2b2885778ff4 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -562,9 +562,7 @@ namespace DOM
if (0 == m_aNodePtr) {
return 0;
}
- Reference< XNodeList > const xNodeList(
- new CChildList(*CNode::getCNode(m_aNodePtr)));
- // XXX check for errors?
+ Reference< XNodeList > const xNodeList(new CChildList(this));
return xNodeList;
}