summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-04-17 22:55:28 +0200
committerEike Rathke <erack@redhat.com>2014-04-17 23:15:01 +0200
commit124e9f77bcdd7cc99794e1d0a84280a918a27772 (patch)
tree225c23a11fb2930d014e50522d9cc0b45cd87f98 /sw
parentfc4ac90f4611cdd2e04efa918cf83a0bd27a8d7c (diff)
no temporary instance of SvtLanguageTable necessary here
Change-Id: I435529e2ef2648d167223334a215df7cbae2da91
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/uibase/uno/unotxdoc.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/uibase/uno/unotxdoc.cxx b/sw/source/core/uibase/uno/unotxdoc.cxx
index ead50e9f37e7..4cb01d9bd4d9 100644
--- a/sw/source/core/uibase/uno/unotxdoc.cxx
+++ b/sw/source/core/uibase/uno/unotxdoc.cxx
@@ -3307,7 +3307,6 @@ uno::Sequence< lang::Locale > SAL_CALL SwXTextDocument::getDocumentLanguages(
if (nMaxCount > 0)
{
sal_Int32 nCount = 0;
- const SvtLanguageTable aLangTab;
for (std::set< LanguageType >::const_iterator it = aAllLangs.begin(); it != aAllLangs.end(); ++it)
{
if (nCount >= nMaxCount)
@@ -3315,7 +3314,7 @@ uno::Sequence< lang::Locale > SAL_CALL SwXTextDocument::getDocumentLanguages(
if (LANGUAGE_NONE != *it)
{
pLanguage[nCount] = LanguageTag::convertToLocale( *it );
- pLanguage[nCount].Language = aLangTab.GetString( *it );
+ pLanguage[nCount].Language = SvtLanguageTable::GetLanguageString( *it );
nCount += 1;
}
}