diff options
author | Noel Grandin <noel@peralex.com> | 2012-11-20 12:57:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-30 13:59:46 +0100 |
commit | f96db7d0ddeb737cf0e14eea6120daab860c54b7 (patch) | |
tree | 6107a9464ff9fa889740a743255f543390791f22 /editeng/source/misc | |
parent | af06afdbe8c61604b4498ce1e11660dd3b647dcc (diff) |
fdo#46808, use service constructor for i18n::Collator
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 934876f81c0e..400eb9c31a78 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -187,15 +187,6 @@ LanguageType SvxAutoCorrDoc::GetLanguage( xub_StrLen , sal_Bool ) const return LANGUAGE_SYSTEM; } -static ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XMultiServiceFactory >& GetProcessFact() -{ - static ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XMultiServiceFactory > xMSF = - ::comphelper::getProcessServiceFactory(); - return xMSF; -} - static const LanguageTag& GetAppLang() { return Application::GetSettings().GetLanguageTag(); @@ -225,7 +216,7 @@ static TransliterationWrapper& GetIgnoreTranslWrapper() static CollatorWrapper& GetCollatorWrapper() { static int bIsInit = 0; - static CollatorWrapper aCollWrp( GetProcessFact() ); + static CollatorWrapper aCollWrp( ::comphelper::getProcessComponentContext() ); if( !bIsInit ) { aCollWrp.loadDefaultCollator( GetAppLang().getLocale(), 0 ); |