diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx index 9abcc1350c06..cbbd830d23e4 100644 --- a/editeng/source/editeng/impedit5.cxx +++ b/editeng/source/editeng/impedit5.cxx @@ -1232,7 +1232,7 @@ bool ImpEditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pEditView LanguageTag aLanguageTag( eLang); if (!mxLocaleDataWrapper.isInitialized()) - mxLocaleDataWrapper.init( SvtSysLocale().GetLocaleData().getComponentContext(), aLanguageTag); + mxLocaleDataWrapper.init( aLanguageTag); else mxLocaleDataWrapper.changeLocale( aLanguageTag); diff --git a/include/svl/ondemand.hxx b/include/svl/ondemand.hxx index 200958b2d99c..a4d4a5337736 100644 --- a/include/svl/ondemand.hxx +++ b/include/svl/ondemand.hxx @@ -51,7 +51,6 @@ class OnDemandLocaleDataWrapper { - css::uno::Reference m_xContext; SvtSysLocale aSysLocale; LanguageType eCurrentLanguage; LanguageType eLastAnyLanguage; @@ -71,10 +70,8 @@ public: bool isInitialized() const { return bInitialized; } - void init(const css::uno::Reference& rxContext, - const LanguageTag& rLanguageTag) + void init(const LanguageTag& rLanguageTag) { - m_xContext = rxContext; changeLocale(rLanguageTag); bInitialized = true; } diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index da7537717e94..7fe1e337d5f3 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -293,7 +293,7 @@ SvNFLanguageData::SvNFLanguageData(const Reference& rxContext , eEvalDateFormat(NF_EVALDATEFORMAT_INTL) { xCharClass.changeLocale(xContext, aLanguageTag); - xLocaleData.init(xContext, aLanguageTag); + xLocaleData.init(aLanguageTag); xCalendar.init(xContext, aLanguageTag.getLocale()); xTransliteration.init(xContext, ActLnge); @@ -320,7 +320,7 @@ SvNFLanguageData::SvNFLanguageData(const SvNFLanguageData& rOther) , eEvalDateFormat(rOther.eEvalDateFormat) { xCharClass.changeLocale(xContext, aLanguageTag); - xLocaleData.init(xContext, aLanguageTag); + xLocaleData.init(aLanguageTag); xCalendar.init(xContext, aLanguageTag.getLocale()); xTransliteration.init(xContext, ActLnge);