From c2ca6fabd1afc3fc07001721c2069d3c8db7000a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 29 Sep 2012 17:20:22 +0200 Subject: Use comphelper::getComponentContext ...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9 --- svl/source/misc/urihelper.cxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'svl/source/misc') diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx index ed96a698f48c..2ae2890f4c63 100644 --- a/svl/source/misc/urihelper.cxx +++ b/svl/source/misc/urihelper.cxx @@ -18,8 +18,6 @@ */ #include -#include -#include "com/sun/star/lang/XMultiComponentFactory.hpp" #include "com/sun/star/ucb/Command.hpp" #include "com/sun/star/ucb/IllegalIdentifierException.hpp" #include "com/sun/star/ucb/UniversalContentBroker.hpp" @@ -291,15 +289,8 @@ rtl::OUString URIHelper::simpleNormalizedMakeRelative( { com::sun::star::uno::Reference< com::sun::star::uri::XUriReference > rel( URIHelper::normalizedMakeRelative( - com::sun::star::uno::Reference< - com::sun::star::uno::XComponentContext >( - (com::sun::star::uno::Reference< - com::sun::star::beans::XPropertySet >( - comphelper::getProcessServiceFactory(), - com::sun::star::uno::UNO_QUERY_THROW)-> - getPropertyValue("DefaultContext")), - com::sun::star::uno::UNO_QUERY_THROW), - baseUriReference, uriReference)); + comphelper::getProcessComponentContext(), baseUriReference, + uriReference)); return rel.is() ? rel->getUriReference() : uriReference; } -- cgit