Kaydet (Commit) 0424163d authored tarafından Eike Rathke's avatar Eike Rathke

no temporary instance of SvtLanguageTable necessary here

Change-Id: Iabb3aadf35eb6b3575d916f2400f606264572537
üst 124e9f77
...@@ -405,7 +405,6 @@ void LanguageBox::FillBox() ...@@ -405,7 +405,6 @@ void LanguageBox::FillBox()
if ( pCurMgr->isLibraryLocalized() ) if ( pCurMgr->isLibraryLocalized() )
{ {
Enable(); Enable();
SvtLanguageTable aLangTable;
Locale aDefaultLocale = pCurMgr->getStringResourceManager()->getDefaultLocale(); Locale aDefaultLocale = pCurMgr->getStringResourceManager()->getDefaultLocale();
Locale aCurrentLocale = pCurMgr->getStringResourceManager()->getCurrentLocale(); Locale aCurrentLocale = pCurMgr->getStringResourceManager()->getCurrentLocale();
Sequence< Locale > aLocaleSeq = pCurMgr->getStringResourceManager()->getLocales(); Sequence< Locale > aLocaleSeq = pCurMgr->getStringResourceManager()->getLocales();
...@@ -417,7 +416,7 @@ void LanguageBox::FillBox() ...@@ -417,7 +416,7 @@ void LanguageBox::FillBox()
bool bIsDefault = localesAreEqual( aDefaultLocale, pLocale[i] ); bool bIsDefault = localesAreEqual( aDefaultLocale, pLocale[i] );
bool bIsCurrent = localesAreEqual( aCurrentLocale, pLocale[i] ); bool bIsCurrent = localesAreEqual( aCurrentLocale, pLocale[i] );
LanguageType eLangType = LanguageTag::convertToLanguageType( pLocale[i] ); LanguageType eLangType = LanguageTag::convertToLanguageType( pLocale[i] );
OUString sLanguage = aLangTable.GetString( eLangType ); OUString sLanguage = SvtLanguageTable::GetLanguageString( eLangType );
if ( bIsDefault ) if ( bIsDefault )
{ {
sLanguage += " "; sLanguage += " ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment