diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 09:37:07 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 08:02:23 +0200 |
commit | 9265b53978e1ed5a61db9941b5661b88d0efd31b (patch) | |
tree | 1915de28c381bddc457e23b984be4dbc8bd2bf9e /extensions/source/update/check | |
parent | 04a2e941cf976894bb69e4d2e1d946a5e513225b (diff) |
Prepare for removal of non-const operator[] from Sequence in extensions
Change-Id: Id57b187aaa669d4b9a35ab726a6df1a9b4823f1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124364
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'extensions/source/update/check')
-rw-r--r-- | extensions/source/update/check/download.cxx | 3 | ||||
-rw-r--r-- | extensions/source/update/check/updatecheckconfig.cxx | 7 | ||||
-rw-r--r-- | extensions/source/update/check/updatehdl.cxx | 3 | ||||
-rw-r--r-- | extensions/source/update/check/updateprotocol.cxx | 3 |
4 files changed, 6 insertions, 10 deletions
diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx index 905d16e99a7f..387c1efd7a4f 100644 --- a/extensions/source/update/check/download.cxx +++ b/extensions/source/update/check/download.cxx @@ -178,8 +178,7 @@ Download::getProxyForURL(std::u16string_view rURL, OString& rHost, sal_Int32& rP aProperty.Name = "nodepath"; aProperty.Value <<= OUString("org.openoffice.Inet/Settings"); - uno::Sequence< uno::Any > aArgumentList( 1 ); - aArgumentList[0] <<= aProperty; + uno::Sequence< uno::Any > aArgumentList{ uno::Any(aProperty) }; uno::Reference< container::XNameAccess > xNameAccess( xConfigProvider->createInstanceWithArguments( diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx index 3c5f163b7226..30e444051e3f 100644 --- a/extensions/source/update/check/updatecheckconfig.cxx +++ b/extensions/source/update/check/updatecheckconfig.cxx @@ -226,8 +226,7 @@ UpdateCheckConfig::get( aProperty.Name = "nodepath"; aProperty.Value <<= OUString("org.openoffice.Office.Jobs/Jobs/UpdateCheck/Arguments"); - uno::Sequence< uno::Any > aArgumentList( 1 ); - aArgumentList[0] <<= aProperty; + uno::Sequence< uno::Any > aArgumentList{ uno::Any(aProperty) }; uno::Reference< container::XNameContainer > xContainer( xConfigProvider->createInstanceWithArguments( @@ -235,11 +234,11 @@ UpdateCheckConfig::get( uno::UNO_QUERY_THROW ); aProperty.Value <<= OUString("/org.openoffice.Office.ExtensionManager/ExtensionUpdateData/IgnoredUpdates"); - aArgumentList[0] <<= aProperty; + aArgumentList = { uno::Any(aProperty) }; uno::Reference< container::XNameContainer > xIgnoredExt( xConfigProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationUpdateAccess", aArgumentList ), uno::UNO_QUERY_THROW ); aProperty.Value <<= OUString("/org.openoffice.Office.ExtensionManager/ExtensionUpdateData/AvailableUpdates"); - aArgumentList[0] <<= aProperty; + aArgumentList = { uno::Any(aProperty) }; uno::Reference< container::XNameContainer > xUpdateAvail( xConfigProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationUpdateAccess", aArgumentList ), uno::UNO_QUERY_THROW ); return new UpdateCheckConfig( xContainer, xUpdateAvail, xIgnoredExt, rListener ); diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx index 16b94d6c9db0..74f7b857828c 100644 --- a/extensions/source/update/check/updatehdl.cxx +++ b/extensions/source/update/check/updatehdl.cxx @@ -782,8 +782,7 @@ void UpdateHandler::setFullVersion( OUString& rString ) aProperty.Name = "nodepath"; aProperty.Value <<= OUString("org.openoffice.Setup/Product"); - uno::Sequence< uno::Any > aArgumentList( 1 ); - aArgumentList[0] <<= aProperty; + uno::Sequence< uno::Any > aArgumentList{ uno::Any(aProperty) }; uno::Reference< uno::XInterface > xConfigAccess = xConfigurationProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aArgumentList ); diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx index a2da6a82c716..db8319c799df 100644 --- a/extensions/source/update/check/updateprotocol.cxx +++ b/extensions/source/update/check/updateprotocol.cxx @@ -61,8 +61,7 @@ getBootstrapData( if( !aValue.isEmpty() ) { - rRepositoryList.realloc(1); - rRepositoryList[0] = aValue; + rRepositoryList = { aValue }; } return true; |