From 3f15a663b273e4a437fd68335d6eab2b11fc80c9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 2 Nov 2012 16:07:50 +0200 Subject: fdo#46808, use service constructor for i18n::TextConversion Modify the service to return XExtendedTextConversion, since that is backwards compatible and the service implements it. Change-Id: I2923969135c396d643c501ed56e0528c0bd7c14a --- sw/source/ui/uiview/viewling.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/ui/uiview') diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx index 1c8fd6eb4eec..466fe5da8c4f 100644 --- a/sw/source/ui/uiview/viewling.cxx +++ b/sw/source/ui/uiview/viewling.cxx @@ -260,9 +260,9 @@ void SwView::StartTextConversion( sal_Bool bOther = !bSelection && !(pWrtShell->GetFrmType(0,sal_True) & FRMTYPE_BODY); { - const uno::Reference< lang::XMultiServiceFactory > xMgr( - comphelper::getProcessServiceFactory() ); - SwHHCWrapper aWrap( this, xMgr, nSourceLang, nTargetLang, pTargetFont, + const uno::Reference< uno::XComponentContext > xContext( + comphelper::getProcessComponentContext() ); + SwHHCWrapper aWrap( this, xContext, nSourceLang, nTargetLang, pTargetFont, nOptions, bIsInteractive, bStart, bOther, bSelection ); aWrap.Convert(); -- cgit