diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-17 23:00:56 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-17 23:15:02 +0200 |
commit | a623feea9bb250c136866190e33f2fb6dbb6ddf4 (patch) | |
tree | 1a42ec8172f7cc009bbea31cedc7a64e96bc53af /cui | |
parent | 5e91217c6abab707ab2db29d5e88da848e5afe49 (diff) |
no temporary instance of SvtLanguageTable necessary here
Change-Id: I7127bf052830b7877bc8ab46f3b218cbb05309a7
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 194654823346..b72d3a2e59da 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -488,7 +488,6 @@ SvxThesaurusDialog::SvxThesaurusDialog( m_pLeftBtn->Enable( false ); // fill language menu button list - SvtLanguageTable aLangTab; uno::Sequence< lang::Locale > aLocales; if (xThesaurus.is()) aLocales = xThesaurus->getLocales(); @@ -500,13 +499,14 @@ SvxThesaurusDialog::SvxThesaurusDialog( { const LanguageType nLang = LanguageTag::convertToLanguageType( pLocales[i] ); DBG_ASSERT( nLang != LANGUAGE_NONE && nLang != LANGUAGE_DONTKNOW, "failed to get language" ); - aLangVec.push_back( aLangTab.GetString( nLang ) ); + aLangVec.push_back( SvtLanguageTable::GetLanguageString( nLang ) ); } std::sort( aLangVec.begin(), aLangVec.end() ); for (size_t i = 0; i < aLangVec.size(); ++i) m_pLangLB->InsertEntry( aLangVec[i] ); - std::vector< OUString >::iterator aI = std::find(aLangVec.begin(), aLangVec.end(), aLangTab.GetString(nLanguage)); + std::vector< OUString >::iterator aI = std::find(aLangVec.begin(), aLangVec.end(), + SvtLanguageTable::GetLanguageString(nLanguage)); if (aI != aLangVec.end()) { m_pLangLB->SelectEntry(*aI); |