summaryrefslogtreecommitdiff
path: root/scripting/source/provider/ProviderCache.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:00:35 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 22:04:01 +0200
commit22ba855d1a2317361c6ad8b631ae1bd707887435 (patch)
treeddbacfd89b4f6ed6696f773bc1a4f1d0395b74d9 /scripting/source/provider/ProviderCache.cxx
parentf528fff9b58e95ed572b226c0fec29f9a0464725 (diff)
Prepare for removal of non-const operator[] from Sequence in scripting
Change-Id: Ia85fe6de38674c7982b0f983a798a4d99ec1fb70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124384 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scripting/source/provider/ProviderCache.cxx')
-rw-r--r--scripting/source/provider/ProviderCache.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx
index be134725635e..8533fc384ed6 100644
--- a/scripting/source/provider/ProviderCache.cxx
+++ b/scripting/source/provider/ProviderCache.cxx
@@ -91,13 +91,14 @@ ProviderCache::getAllProviders()
// should assert if size !> 0
if ( !m_hProviderDetailsCache.empty() )
{
+ auto pproviders = providers.getArray();
sal_Int32 providerIndex = 0;
for (auto& rDetail : m_hProviderDetailsCache)
{
Reference<provider::XScriptProvider> xScriptProvider = rDetail.second.provider;
if ( xScriptProvider.is() )
{
- providers[ providerIndex++ ] = xScriptProvider;
+ pproviders[ providerIndex++ ] = xScriptProvider;
}
else
{
@@ -105,7 +106,7 @@ ProviderCache::getAllProviders()
try
{
xScriptProvider = createProvider(rDetail.second);
- providers[ providerIndex++ ] = xScriptProvider;
+ pproviders[ providerIndex++ ] = xScriptProvider;
}
catch ( const Exception& )
{