From 0fcd1a73f0e1ec564f3c6da1ccd890183d3c18db Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 1 Jun 2012 15:15:25 +0200 Subject: fdo#46808, Adapt UNO services to new style, Part 7, updating ::create Update code to use factory method URLTransformer::create Change-Id: I3fd2e838497bcfd8fc949615c0e7d60a6ea47118 Signed-off-by: Stephan Bergmann , added some tweaks. --- cui/source/options/optupdt.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cui/source') diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx index 28d20f1c2b70..ebcfc740d249 100644 --- a/cui/source/options/optupdt.cxx +++ b/cui/source/options/optupdt.cxx @@ -34,6 +34,7 @@ #include "optupdt.hrc" #include #include +#include #include #include #include @@ -42,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -362,8 +364,7 @@ IMPL_LINK_NOARG(SvxOnlineUpdateTabPage, CheckNowHdl_Impl) xNameAccess->getByName(UNISTRING("URL")) >>= aURL.Complete; uno::Reference < util::XURLTransformer > xTransformer( - xFactory->createInstance( UNISTRING( "com.sun.star.util.URLTransformer" ) ), - uno::UNO_QUERY_THROW ); + util::URLTransformer::create( comphelper::getProcessComponentContext() ) ); xTransformer->parseStrict(aURL); -- cgit