summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-29 17:20:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-29 18:18:28 +0200
commitc2ca6fabd1afc3fc07001721c2069d3c8db7000a (patch)
tree350741d6d19564bcaf00506bd7d22b4c644e0fdc /svl
parentSome clean up (diff)
downloadcore-c2ca6fabd1afc3fc07001721c2069d3c8db7000a.tar.gz
core-c2ca6fabd1afc3fc07001721c2069d3c8db7000a.zip
Use comphelper::getComponentContext
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/urihelper.cxx13
1 files changed, 2 insertions, 11 deletions
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 <svl/urihelper.hxx>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#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;
}