summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-05-07 19:29:10 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-05-07 22:29:48 +0200
commit28502c1ddb838381b6202c7b066f6964400a5ef9 (patch)
treeb47dda0b6a3041525d1d12cc2a4209710360cfdb /cui
parent5152841ad0c9e3307285b809b7432bee3df78471 (diff)
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 <serval2412@yahoo.fr>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optlingu.cxx7
1 files changed, 5 insertions, 2 deletions
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(