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