diff options
author | vgeof <vivians88@hotmail.fr> | 2020-05-09 18:57:44 -0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-05-19 09:40:05 +0200 |
commit | 8209c2569f5726f9ed29f75d30efdccb94f98fe5 (patch) | |
tree | 934892f2d6bd32d835d42857e17311e7584509e1 /basctl | |
parent | 8a21d5053d331160e4913dc80c045a454ec84de3 (diff) |
tdf#88205 EasyHack change css::uno::Sequence initializations
1st commit. Use initializer lists for uno::Sequence in 4 files
Change-Id: I0192b4b8f023fb8d606dff81c4b910c8c7c2a9a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93900
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Jenkins
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 4 | ||||
-rw-r--r-- | basctl/source/dlged/managelang.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index eab48715882b..4799e8f7a299 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -1007,9 +1007,7 @@ bool implImportDialog(weld::Window* pWin, const OUString& rCurPath, const Script } } - Sequence< lang::Locale > aFirstLocaleSeq( 1 ); - aFirstLocaleSeq[0] = aFirstLocale; - pCurMgr->handleAddLocales( aFirstLocaleSeq ); + pCurMgr->handleAddLocales( {aFirstLocale} ); if( nOnlyInImportLanguageCount > 1 ) { 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(); |