summaryrefslogtreecommitdiff
path: root/basctl/source/dlged/managelang.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/dlged/managelang.cxx')
-rw-r--r--basctl/source/dlged/managelang.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx
index 01ce70421b24..77a40f031c80 100644
--- a/basctl/source/dlged/managelang.cxx
+++ b/basctl/source/dlged/managelang.cxx
@@ -298,9 +298,7 @@ Sequence< Locale > SetDefaultLanguageDialog::GetLocales() const
if (bNotLocalized)
{
LanguageType eType(m_xLanguageLB->get_selected_id().toUInt32());
- Sequence<Locale> aLocaleSeq(1);
- aLocaleSeq[0] = LanguageTag(eType).getLocale();
- return aLocaleSeq;
+ return {LanguageTag(eType).getLocale()};
}
std::vector<Locale> aLocaleSeq;
const sal_Int32 nCount = m_xCheckLangLB->n_children();