diff options
author | Noel Grandin <noel@peralex.com> | 2012-11-02 15:13:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-05 18:05:00 +0100 |
commit | 0666e43c45876199ddc71e378554878cca6f0539 (patch) | |
tree | 39fd44bd26cceaa71a86a06c480d80c8351b5e0f /sw | |
parent | ebc61e11cdb02f5cc33aeabead3d191eaf0d23d3 (diff) |
fdo#46808, use service constructor for i18n::CharacterClassification
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/bastyp/init.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index 65c3eac6b771..03149d5eeff4 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -260,7 +260,7 @@ SwCalc::SwCalc( SwDoc& rD ) ::com::sun::star::lang::Locale aLocale( SvxCreateLocale( eLang )); ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF( ::comphelper::getProcessServiceFactory() ); - pCharClass = new CharClass( xMSF, aLocale ); + pCharClass = new CharClass( ::comphelper::getProcessComponentContext(), aLocale ); pLclData = new LocaleDataWrapper( xMSF, aLocale ); } diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx index 3a725a731c09..117b7e02f3ef 100644 --- a/sw/source/core/bastyp/init.cxx +++ b/sw/source/core/bastyp/init.cxx @@ -810,9 +810,9 @@ CharClass& GetAppCharClass() { if ( !pAppCharClass ) { - uno::Reference< lang::XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory(); pAppCharClass = new CharClass( - xMSF, SwBreakIt::Get()->GetLocale( (LanguageType)GetAppLanguage() )); + ::comphelper::getProcessComponentContext(), + SwBreakIt::Get()->GetLocale( (LanguageType)GetAppLanguage() )); } return *pAppCharClass; } |