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>
This commit is contained in:
Mike Kaganski
2021-10-29 09:48:15 +03:00
parent 6d4a6abab3
commit 8d1ebf5336
2 changed files with 2 additions and 4 deletions

View File

@@ -45,8 +45,7 @@ struct LangSvcEntries
explicit LangSvcEntries( const OUString &rSvcImplName ) :
nLastTriedSvcIndex(-1)
{
aSvcImplNames.realloc(1);
aSvcImplNames[0] = rSvcImplName;
aSvcImplNames = { rSvcImplName };
}
void Clear()

View File

@@ -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 ),