summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/registry/dp_backenddb.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-23 18:23:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-03 15:55:04 +0200
commit9b07288138228af56e58f50dc6ba50865b52fdfb (patch)
tree2bde7ca61824f7266c70a404be6049fba26d8c98 /desktop/source/deployment/registry/dp_backenddb.cxx
parenteb0e7f62587d957c8d7a86d1c8170e5cd7a7e029 (diff)
fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new style
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
Diffstat (limited to 'desktop/source/deployment/registry/dp_backenddb.cxx')
-rw-r--r--desktop/source/deployment/registry/dp_backenddb.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx
index 1d0686014c8c..4616c2a82aee 100644
--- a/desktop/source/deployment/registry/dp_backenddb.cxx
+++ b/desktop/source/deployment/registry/dp_backenddb.cxx
@@ -33,7 +33,7 @@
#include "cppuhelper/exc_hlp.hxx"
#include "osl/file.hxx"
#include "com/sun/star/uno/XComponentContext.hpp"
-#include "com/sun/star/xml/dom/XDocumentBuilder.hpp"
+#include "com/sun/star/xml/dom/DocumentBuilder.hpp"
#include "com/sun/star/xml/xpath/XXPathAPI.hpp"
#include "com/sun/star/io/XActiveDataSource.hpp"
#include "com/sun/star/io/XActiveDataControl.hpp"
@@ -79,12 +79,7 @@ css::uno::Reference<css::xml::dom::XDocument> BackendDb::getDocument()
if (!m_doc.is())
{
const Reference<css::xml::dom::XDocumentBuilder> xDocBuilder(
- m_xContext->getServiceManager()->createInstanceWithContext(
- OUSTR("com.sun.star.xml.dom.DocumentBuilder"),
- m_xContext ), css::uno::UNO_QUERY);
- if (!xDocBuilder.is())
- throw css::uno::RuntimeException(
- OUSTR(" Could not create service com.sun.star.xml.dom.DocumentBuilder"), 0);
+ css::xml::dom::DocumentBuilder::create(m_xContext) );
::osl::DirectoryItem item;
::osl::File::RC err = ::osl::DirectoryItem::get(m_urlDb, item);