diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-23 18:23:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:04 +0200 |
commit | 9b07288138228af56e58f50dc6ba50865b52fdfb (patch) | |
tree | 2bde7ca61824f7266c70a404be6049fba26d8c98 /unoxml | |
parent | eb0e7f62587d957c8d7a86d1c8170e5cd7a7e029 (diff) |
fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new style
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 5693be539009..a9ae0e01b5f0 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -22,7 +22,8 @@ #include "saxbuilder.hxx" -#include <com/sun/star/xml/dom/XDocumentBuilder.hpp> +#include <com/sun/star/xml/dom/DocumentBuilder.hpp> +#include <comphelper/componentcontext.hxx> namespace DOM @@ -166,8 +167,7 @@ namespace DOM if (!m_aState == SAXDocumentBuilderState_READY) throw SAXException(); - Reference< XDocumentBuilder > aBuilder(m_aServiceManager->createInstance( - "com.sun.star.xml.dom.DocumentBuilder"), UNO_QUERY_THROW); + Reference< XDocumentBuilder > aBuilder(DocumentBuilder::create(comphelper::ComponentContext(m_aServiceManager).getUNOContext())); Reference< XDocument > aDocument = aBuilder->newDocument(); m_aNodeStack.push(Reference< XNode >(aDocument, UNO_QUERY)); m_aDocument = aDocument; |