diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/global.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index 2cefa9468cc5..4b9eaa66c6fc 100644 --- a/sc/source/core/data/global.cxx +++ b/sc/source/core/data/global.cxx @@ -1137,7 +1137,7 @@ CalendarWrapper* ScGlobal::GetCalendar() { if ( !pCalendar ) { - pCalendar = new CalendarWrapper( ::comphelper::getProcessServiceFactory() ); + pCalendar = new CalendarWrapper( ::comphelper::getProcessComponentContext() ); pCalendar->loadDefaultCalendar( *GetLocale() ); } return pCalendar; diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 05521e20ecd8..f96663069816 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -28,6 +28,7 @@ #include "sc.hrc" +#include <comphelper/processfactory.hxx> #include <i18npool/mslangid.hxx> #include <sot/formats.hxx> #include <sfx2/mieclip.hxx> @@ -1296,7 +1297,7 @@ bool ScImportExport::ExtText2Doc( SvStream& rStrm ) ::utl::TransliterationWrapper aTransliteration( pDoc->GetServiceManager(), SC_TRANSLITERATION_IGNORECASE ); aTransliteration.loadModuleIfNeeded( eDocLang ); - CalendarWrapper aCalendar( pDoc->GetServiceManager() ); + CalendarWrapper aCalendar( comphelper::getComponentContext(pDoc->GetServiceManager()) ); aCalendar.loadDefaultCalendar( MsLangId::convertLanguageToLocale( eDocLang ) ); ::utl::TransliterationWrapper* pEnglishTransliteration = NULL; @@ -1306,7 +1307,7 @@ bool ScImportExport::ExtText2Doc( SvStream& rStrm ) pEnglishTransliteration = new ::utl::TransliterationWrapper ( pDoc->GetServiceManager(), SC_TRANSLITERATION_IGNORECASE ); aTransliteration.loadModuleIfNeeded( LANGUAGE_ENGLISH_US ); - pEnglishCalendar = new CalendarWrapper ( pDoc->GetServiceManager() ); + pEnglishCalendar = new CalendarWrapper ( comphelper::getComponentContext(pDoc->GetServiceManager()) ); pEnglishCalendar->loadDefaultCalendar( MsLangId::convertLanguageToLocale( LANGUAGE_ENGLISH_US ) ); } |