cui/source/options/optlingu.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 28502c1ddb838381b6202c7b066f6964400a5ef9 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun May 7 19:29:10 2023 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun May 7 22:29:48 2023 +0200 Simplify initialization in cui/source/options/optlingu.cxx Change-Id: Ie2d68ff2dc9cbc99a10fd3403a72737be4b991dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151478 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 3530d20f8750..584c86c5f7d6 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -560,8 +560,11 @@ SvxLinguData_Impl::SvxLinguData_Impl() : xLinguSrvcMgr = LinguServiceManager::create(xContext); const Locale& rCurrentLocale = Application::GetSettings().GetLanguageTag().getLocale(); - Sequence<Any> aArgs(2);//second arguments has to be empty! - aArgs.getArray()[0] <<= LinguMgr::GetLinguPropertySet(); + Sequence<Any> aArgs + { + Any(LinguMgr::GetLinguPropertySet()), + Any() // second argument has to be empty! + }; //read spell checker const Sequence< OUString > aSpellNames = xLinguSrvcMgr->getAvailableServices(