summaryrefslogtreecommitdiff
path: root/xmloff/source/core/RDFaExportHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-10-12 08:57:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-23 11:45:47 +0200
commit5aa2cd1d3f85958917f47523ee430af11ac1751d (patch)
tree0a5e62c012841e51410500c5b6a52db1938c5ed3 /xmloff/source/core/RDFaExportHelper.cxx
parentf4776bf465ee682f65d1e978b031c928d9d310a5 (diff)
fdo#46808, use service constructor for uri::UriReferenceFactory
Change-Id: I4e72bf5880fa28cb96d93ede7730a63220af7fa6
Diffstat (limited to 'xmloff/source/core/RDFaExportHelper.cxx')
-rw-r--r--xmloff/source/core/RDFaExportHelper.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/xmloff/source/core/RDFaExportHelper.cxx b/xmloff/source/core/RDFaExportHelper.cxx
index 4a9d39ba15ec..e74cdaff3516 100644
--- a/xmloff/source/core/RDFaExportHelper.cxx
+++ b/xmloff/source/core/RDFaExportHelper.cxx
@@ -38,7 +38,7 @@
#include <comphelper/stl_types.hxx>
#include <com/sun/star/uri/XUriReference.hpp>
-#include <com/sun/star/uri/XUriReferenceFactory.hpp>
+#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/rdf/Statement.hpp>
#include <com/sun/star/rdf/URIs.hpp>
#include <com/sun/star/rdf/URI.hpp>
@@ -99,12 +99,8 @@ getRelativeReference(SvXMLExport const& rExport, ::rtl::OUString const& rURI)
uno::Reference<uno::XComponentContext> const xContext(
rExport.GetComponentContext());
- uno::Reference<lang::XMultiComponentFactory> const xServiceFactory(
- xContext->getServiceManager(), uno::UNO_SET_THROW);
- uno::Reference<uri::XUriReferenceFactory> const xUriFactory(
- xServiceFactory->createInstanceWithContext(
- ::rtl::OUString( "com.sun.star.uri.UriReferenceFactory"), xContext),
- uno::UNO_QUERY_THROW);
+ uno::Reference<uri::XUriReferenceFactory> const xUriFactory =
+ uri::UriReferenceFactory::create( xContext );
uno::Reference< uri::XUriReference > const xBaseURI(
xUriFactory->parse(baseURI), uno::UNO_SET_THROW );