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/documentbuilder.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/documentbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index e9f10249292e..4b9cba2ec0ed 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -185,9 +185,7 @@ namespace DOM // create a new document xmlDocPtr pDocument = xmlNewDoc((const xmlChar*)"1.0"); Reference< XDocument > const xRet( - static_cast< XNode* >(CNode::getCNode( - reinterpret_cast<xmlNodePtr>(pDocument)).get()), - UNO_QUERY_THROW); + CDocument::CreateCDocument(pDocument).get()); return xRet; } @@ -361,9 +359,7 @@ namespace DOM } xmlFreeParserCtxt(ctxt); Reference< XDocument > const xRet( - static_cast< XNode* >(CNode::getCNode( - reinterpret_cast<xmlNodePtr>(pDoc)).get()), - UNO_QUERY_THROW); + CDocument::CreateCDocument(pDoc).get()); return xRet; } @@ -414,9 +410,7 @@ namespace DOM } xmlFreeParserCtxt(ctxt); Reference< XDocument > const xRet( - static_cast< XNode* >(CNode::getCNode( - reinterpret_cast<xmlNodePtr>(pDoc)).get()), - UNO_QUERY_THROW); + CDocument::CreateCDocument(pDoc).get()); return xRet; } |