diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 09:48:15 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 18:27:43 +0200 |
commit | 8d1ebf5336c8194977d807e43c46b41b0cbcf88d (patch) | |
tree | ed8bb47dc3aa8e99789bf39cea0495d9e46cbd3d /linguistic | |
parent | 6d4a6abab3bc610c8bceb9e7d322565f5614c3c5 (diff) |
Prepare for removal of non-const operator[] from Sequence in linguistic
Change-Id: I6eda1416ca0421a48bf9811343850aa504019d57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124374
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/defs.hxx | 3 | ||||
-rw-r--r-- | linguistic/source/gciterator.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/linguistic/source/defs.hxx b/linguistic/source/defs.hxx index 38909e82362c..7e3d658956e5 100644 --- a/linguistic/source/defs.hxx +++ b/linguistic/source/defs.hxx @@ -45,8 +45,7 @@ struct LangSvcEntries explicit LangSvcEntries( const OUString &rSvcImplName ) : nLastTriedSvcIndex(-1) { - aSvcImplNames.realloc(1); - aSvcImplNames[0] = rSvcImplName; + aSvcImplNames = { rSvcImplName }; } void Clear() diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index 09e814d97050..b915dee3033a 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -1044,8 +1044,7 @@ uno::Reference< util::XChangesBatch > const & GrammarCheckingIterator::GetUpdate beans::PropertyValue aValue; aValue.Name = "nodepath"; aValue.Value <<= OUString("org.openoffice.Office.Linguistic/ServiceManager"); - uno::Sequence< uno::Any > aProps(1); - aProps[0] <<= aValue; + uno::Sequence< uno::Any > aProps{ uno::Any(aValue) }; m_xUpdateAccess.set( xConfigurationProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationUpdateAccess", aProps ), |