loplugin:unusedfields
Change-Id: I45eedbeeb839279fb469a74a2f8ae1ff3cf32a38 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184161 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
1fc3b3198c
commit
8cfc3e8b50
@ -1232,7 +1232,7 @@ bool ImpEditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pEditView
|
|||||||
LanguageTag aLanguageTag( eLang);
|
LanguageTag aLanguageTag( eLang);
|
||||||
|
|
||||||
if (!mxLocaleDataWrapper.isInitialized())
|
if (!mxLocaleDataWrapper.isInitialized())
|
||||||
mxLocaleDataWrapper.init( SvtSysLocale().GetLocaleData().getComponentContext(), aLanguageTag);
|
mxLocaleDataWrapper.init( aLanguageTag);
|
||||||
else
|
else
|
||||||
mxLocaleDataWrapper.changeLocale( aLanguageTag);
|
mxLocaleDataWrapper.changeLocale( aLanguageTag);
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@
|
|||||||
|
|
||||||
class OnDemandLocaleDataWrapper
|
class OnDemandLocaleDataWrapper
|
||||||
{
|
{
|
||||||
css::uno::Reference<css::uno::XComponentContext> m_xContext;
|
|
||||||
SvtSysLocale aSysLocale;
|
SvtSysLocale aSysLocale;
|
||||||
LanguageType eCurrentLanguage;
|
LanguageType eCurrentLanguage;
|
||||||
LanguageType eLastAnyLanguage;
|
LanguageType eLastAnyLanguage;
|
||||||
@ -71,10 +70,8 @@ public:
|
|||||||
|
|
||||||
bool isInitialized() const { return bInitialized; }
|
bool isInitialized() const { return bInitialized; }
|
||||||
|
|
||||||
void init(const css::uno::Reference<css::uno::XComponentContext>& rxContext,
|
void init(const LanguageTag& rLanguageTag)
|
||||||
const LanguageTag& rLanguageTag)
|
|
||||||
{
|
{
|
||||||
m_xContext = rxContext;
|
|
||||||
changeLocale(rLanguageTag);
|
changeLocale(rLanguageTag);
|
||||||
bInitialized = true;
|
bInitialized = true;
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ SvNFLanguageData::SvNFLanguageData(const Reference<XComponentContext>& rxContext
|
|||||||
, eEvalDateFormat(NF_EVALDATEFORMAT_INTL)
|
, eEvalDateFormat(NF_EVALDATEFORMAT_INTL)
|
||||||
{
|
{
|
||||||
xCharClass.changeLocale(xContext, aLanguageTag);
|
xCharClass.changeLocale(xContext, aLanguageTag);
|
||||||
xLocaleData.init(xContext, aLanguageTag);
|
xLocaleData.init(aLanguageTag);
|
||||||
xCalendar.init(xContext, aLanguageTag.getLocale());
|
xCalendar.init(xContext, aLanguageTag.getLocale());
|
||||||
xTransliteration.init(xContext, ActLnge);
|
xTransliteration.init(xContext, ActLnge);
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ SvNFLanguageData::SvNFLanguageData(const SvNFLanguageData& rOther)
|
|||||||
, eEvalDateFormat(rOther.eEvalDateFormat)
|
, eEvalDateFormat(rOther.eEvalDateFormat)
|
||||||
{
|
{
|
||||||
xCharClass.changeLocale(xContext, aLanguageTag);
|
xCharClass.changeLocale(xContext, aLanguageTag);
|
||||||
xLocaleData.init(xContext, aLanguageTag);
|
xLocaleData.init(aLanguageTag);
|
||||||
xCalendar.init(xContext, aLanguageTag.getLocale());
|
xCalendar.init(xContext, aLanguageTag.getLocale());
|
||||||
xTransliteration.init(xContext, ActLnge);
|
xTransliteration.init(xContext, ActLnge);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user