summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/viewling.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uiview/viewling.cxx')
-rw-r--r--sw/source/ui/uiview/viewling.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx
index 5c94fcf272ca..1722998e6499 100644
--- a/sw/source/ui/uiview/viewling.cxx
+++ b/sw/source/ui/uiview/viewling.cxx
@@ -79,6 +79,7 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
+#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <vcl/svapp.hxx>
@@ -749,17 +750,11 @@ sal_Bool SwView::ExecSpellPopup(const Point& rPt)
xFrame = pSfxViewFrame->GetFrame().GetFrameInterface();
com::sun::star::util::URL aURL;
uno::Reference< frame::XDispatchProvider > xDispatchProvider( xFrame, UNO_QUERY );
- uno::Reference< lang::XMultiServiceFactory > xMgr( comphelper::getProcessServiceFactory(), uno::UNO_QUERY );
try
{
uno::Reference< frame::XDispatch > xDispatch;
- uno::Reference< util::XURLTransformer > xURLTransformer;
- if (xMgr.is())
- {
- xURLTransformer = uno::Reference< util::XURLTransformer >( xMgr->createInstance(
- C2U("com.sun.star.util.URLTransformer")), UNO_QUERY);
- }
+ uno::Reference< util::XURLTransformer > xURLTransformer = util::URLTransformer::create(comphelper::getProcessComponentContext());
aURL.Complete = aCommand;
xURLTransformer->parseStrict(aURL);