summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-02-01 13:28:32 +0200
committerNoel Grandin <noel@peralex.com>2013-02-11 08:02:18 +0200
commit0cd4caa547a75316c6b3f2992dd66b2294c6f1ae (patch)
tree7936ffb501740f7a53c18ed679f27ee1ec76b1ef /comphelper
parente7a76a0e65a185c3ac0ef041f7e6957d3f8b655b (diff)
fdo#46808, convert code in desktop module to XComponentContext
Change-Id: I79a22f52ebe59f8f89291d4e6e78bd37817cd047
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/synchronousdispatch.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/comphelper/source/misc/synchronousdispatch.cxx b/comphelper/source/misc/synchronousdispatch.cxx
index bb0d28aa80a5..71d7a9326c04 100644
--- a/comphelper/source/misc/synchronousdispatch.cxx
+++ b/comphelper/source/misc/synchronousdispatch.cxx
@@ -22,7 +22,7 @@
#include "com/sun/star/frame/XSynchronousDispatch.hpp"
#include "com/sun/star/lang/XComponent.hpp"
#include "com/sun/star/lang/XMultiServiceFactory.hpp"
-#include "com/sun/star/util/XURLTransformer.hpp"
+#include "com/sun/star/util/URLTransformer.hpp"
#include "comphelper/synchronousdispatch.hxx"
#include "comphelper/processfactory.hxx"
@@ -48,11 +48,8 @@ uno::Reference< lang::XComponent > SynchronousDispatch::dispatch(
{
util::URL aURL;
aURL.Complete = sURL;
- uno::Reference < util::XURLTransformer > xTrans( ::comphelper::getProcessServiceFactory()->createInstance(
- "com.sun.star.util.URLTransformer"),
- uno::UNO_QUERY );
- if ( xTrans.is() )
- xTrans->parseStrict( aURL );
+ uno::Reference < util::XURLTransformer > xTrans = util::URLTransformer::create( ::comphelper::getProcessComponentContext() );
+ xTrans->parseStrict( aURL );
uno::Reference < frame::XDispatch > xDispatcher;
uno::Reference < frame::XDispatchProvider > xProvider( xStartPoint, uno::UNO_QUERY );