summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-02 16:07:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-15 08:28:43 +0100
commit3f15a663b273e4a437fd68335d6eab2b11fc80c9 (patch)
tree5651b63a998b26f12c5626f4a3fc8490bceed35b /sw/source/ui/uiview
parented80674ec793f640916ad4162ee4121aeceac7f6 (diff)
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
Diffstat (limited to 'sw/source/ui/uiview')
-rw-r--r--sw/source/ui/uiview/viewling.cxx6
1 files changed, 3 insertions, 3 deletions
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();