diff options
| author | Noel Grandin <noel@peralex.com> | 2013-01-10 16:40:27 +0200 |
|---|---|---|
| committer | Noel Grandin <noel@peralex.com> | 2013-01-28 08:25:24 +0200 |
| commit | f95a7c2c6d5c2158de12bb3ca6fd94b139e33c62 (patch) | |
| tree | 85f09e15fd9954a84f55e561cb174fe0450ea99f /basic/source/runtime/runtime.cxx | |
| parent | b772eb0c728a06bdf72866ef61f800bbf7ec15a9 (diff) | |
fdo#46808, Convert SvNumberFormatter to use XComponentContext
Change-Id: If4e8312dae6bc5eb8bb7655cf250f06ab37b7e5c
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
| -rw-r--r-- | basic/source/runtime/runtime.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index eba60649f255..55836e8593af 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -349,9 +349,6 @@ void SbiInstance::PrepareNumberFormatter( SvNumberFormatter*& rpNumberFormatter, sal_uInt32 &rnStdDateIdx, sal_uInt32 &rnStdTimeIdx, sal_uInt32 &rnStdDateTimeIdx, LanguageType* peFormatterLangType, DateFormat* peFormatterDateFormat ) { - com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > - xFactory = comphelper::getProcessServiceFactory(); - LanguageType eLangType; if( peFormatterLangType ) { @@ -372,7 +369,7 @@ void SbiInstance::PrepareNumberFormatter( SvNumberFormatter*& rpNumberFormatter, eDate = aSysLocale.GetLocaleData().getDateFormat(); } - rpNumberFormatter = new SvNumberFormatter( xFactory, eLangType ); + rpNumberFormatter = new SvNumberFormatter( comphelper::getProcessComponentContext(), eLangType ); sal_Int32 nCheckPos = 0; short nType; rnStdTimeIdx = rpNumberFormatter->GetStandardFormat( NUMBERFORMAT_TIME, eLangType ); |
