diff options
author | Michael Stahl <mst@openoffice.org> | 2011-01-19 20:27:25 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-01-19 20:27:25 +0100 |
commit | dd377d72a5ef66daee850b66ab7b7308939a7626 (patch) | |
tree | 0e646ac37439bc4717bb8dd4005728d4af082271 /unoxml/source/dom/attributesmap.cxx | |
parent | 46716bcf7fd75a2a293722a6a458e4138c91f394 (diff) |
xmlfix3: #i113682#: unoxml: no more globals in CNode:
instead now the CDocument contains a node map member.
Diffstat (limited to 'unoxml/source/dom/attributesmap.cxx')
-rw-r--r-- | unoxml/source/dom/attributesmap.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx index 5ed65bf10bfc..cad05123bf96 100644 --- a/unoxml/source/dom/attributesmap.cxx +++ b/unoxml/source/dom/attributesmap.cxx @@ -30,6 +30,7 @@ #include <string.h> #include <element.hxx> +#include <document.hxx> namespace DOM @@ -75,7 +76,8 @@ namespace DOM { if( strcmp((char*)xName, (char*)cur->name) == 0) { - aNode = Reference< XNode >( CNode::getCNode( + aNode = Reference< XNode >( + m_pElement->GetOwnerDocument().GetCNode( reinterpret_cast<xmlNodePtr>(cur)).get() ); break; } @@ -108,7 +110,8 @@ namespace DOM if( strcmp((char*)xName, (char*)cur->name) == 0 && cur->ns == pNs) { - aNode = Reference< XNode >( CNode::getCNode( + aNode = Reference< XNode >( + m_pElement->GetOwnerDocument().GetCNode( reinterpret_cast<xmlNodePtr>(cur)).get() ); break; } @@ -134,7 +137,8 @@ namespace DOM { if (count == index) { - aNode = Reference< XNode >( CNode::getCNode( + aNode = Reference< XNode >( + m_pElement->GetOwnerDocument().GetCNode( reinterpret_cast<xmlNodePtr>(cur)).get() ); break; } @@ -161,7 +165,8 @@ namespace DOM while (cur != NULL) { if (strcmp((char*)xName, (char*)cur->name) == 0) { - ::rtl::Reference<CNode> const pCNode = CNode::getCNode( + ::rtl::Reference<CNode> const pCNode = + m_pElement->GetOwnerDocument().GetCNode( reinterpret_cast<xmlNodePtr>(cur)).get(); // this seems to be legal... xmlUnlinkNode(reinterpret_cast<xmlNodePtr>(cur)); @@ -196,7 +201,8 @@ namespace DOM if (strcmp((char*)xName, (char*)cur->name) == 0 && cur->ns == pNs) { - ::rtl::Reference<CNode> const pCNode = CNode::getCNode( + ::rtl::Reference<CNode> const pCNode = + m_pElement->GetOwnerDocument().GetCNode( reinterpret_cast<xmlNodePtr>(cur)).get(); // this seems to be legal... xmlUnlinkNode(reinterpret_cast<xmlNodePtr>(cur)); |