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

now these temporary SvtLanguageTable instances are moot

Change-Id: I82eec52b3ee30dfbdb87469cb8f0b14c4fc777cf
üst a9ff0164
...@@ -155,11 +155,10 @@ void SvxLanguageBox::Init() ...@@ -155,11 +155,10 @@ void SvxLanguageBox::Init()
if ( m_bWithCheckmark ) if ( m_bWithCheckmark )
{ {
SvtLanguageTable aLangTable; sal_uInt32 nCount = SvtLanguageTable::GetLanguageEntryCount();
sal_uInt32 nCount = aLangTable.GetEntryCount();
for ( sal_uInt32 i = 0; i < nCount; i++ ) for ( sal_uInt32 i = 0; i < nCount; i++ )
{ {
LanguageType nLangType = aLangTable.GetTypeAtIndex( i ); LanguageType nLangType = SvtLanguageTable::GetLanguageTypeAtIndex( i );
bool bInsert = true; bool bInsert = true;
if ((LANGUAGE_DONTKNOW == nLangType) || if ((LANGUAGE_DONTKNOW == nLangType) ||
...@@ -257,7 +256,6 @@ void SvxLanguageBox::SetLanguageList( sal_Int16 nLangList, ...@@ -257,7 +256,6 @@ void SvxLanguageBox::SetLanguageList( sal_Int16 nLangList,
} }
} }
SvtLanguageTable aLangTable;
::com::sun::star::uno::Sequence< sal_uInt16 > xKnown; ::com::sun::star::uno::Sequence< sal_uInt16 > xKnown;
const sal_uInt16* pKnown; const sal_uInt16* pKnown;
sal_uInt32 nCount; sal_uInt32 nCount;
...@@ -269,7 +267,7 @@ void SvxLanguageBox::SetLanguageList( sal_Int16 nLangList, ...@@ -269,7 +267,7 @@ void SvxLanguageBox::SetLanguageList( sal_Int16 nLangList,
} }
else else
{ {
nCount = aLangTable.GetEntryCount(); nCount = SvtLanguageTable::GetLanguageEntryCount();
pKnown = NULL; pKnown = NULL;
} }
for ( sal_uInt32 i = 0; i < nCount; i++ ) for ( sal_uInt32 i = 0; i < nCount; i++ )
...@@ -278,7 +276,7 @@ void SvxLanguageBox::SetLanguageList( sal_Int16 nLangList, ...@@ -278,7 +276,7 @@ void SvxLanguageBox::SetLanguageList( sal_Int16 nLangList,
if ( nLangList & LANG_LIST_ONLY_KNOWN ) if ( nLangList & LANG_LIST_ONLY_KNOWN )
nLangType = pKnown[i]; nLangType = pKnown[i];
else else
nLangType = aLangTable.GetTypeAtIndex( i ); nLangType = SvtLanguageTable::GetLanguageTypeAtIndex( i );
if ( nLangType != LANGUAGE_DONTKNOW && if ( nLangType != LANGUAGE_DONTKNOW &&
nLangType != LANGUAGE_SYSTEM && nLangType != LANGUAGE_SYSTEM &&
nLangType != LANGUAGE_NONE && nLangType != LANGUAGE_NONE &&
......
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