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:
@@ -45,8 +45,7 @@ struct LangSvcEntries
|
|||||||
explicit LangSvcEntries( const OUString &rSvcImplName ) :
|
explicit LangSvcEntries( const OUString &rSvcImplName ) :
|
||||||
nLastTriedSvcIndex(-1)
|
nLastTriedSvcIndex(-1)
|
||||||
{
|
{
|
||||||
aSvcImplNames.realloc(1);
|
aSvcImplNames = { rSvcImplName };
|
||||||
aSvcImplNames[0] = rSvcImplName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Clear()
|
void Clear()
|
||||||
|
@@ -1044,8 +1044,7 @@ uno::Reference< util::XChangesBatch > const & GrammarCheckingIterator::GetUpdate
|
|||||||
beans::PropertyValue aValue;
|
beans::PropertyValue aValue;
|
||||||
aValue.Name = "nodepath";
|
aValue.Name = "nodepath";
|
||||||
aValue.Value <<= OUString("org.openoffice.Office.Linguistic/ServiceManager");
|
aValue.Value <<= OUString("org.openoffice.Office.Linguistic/ServiceManager");
|
||||||
uno::Sequence< uno::Any > aProps(1);
|
uno::Sequence< uno::Any > aProps{ uno::Any(aValue) };
|
||||||
aProps[0] <<= aValue;
|
|
||||||
m_xUpdateAccess.set(
|
m_xUpdateAccess.set(
|
||||||
xConfigurationProvider->createInstanceWithArguments(
|
xConfigurationProvider->createInstanceWithArguments(
|
||||||
"com.sun.star.configuration.ConfigurationUpdateAccess", aProps ),
|
"com.sun.star.configuration.ConfigurationUpdateAccess", aProps ),
|
||||||
|
Reference in New Issue
Block a user