summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-18 21:11:56 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-19 09:42:03 +0100
commite8248b5e4b19df8ba469d1ca3a762960c1a053b5 (patch)
tree74e667d0e9a5379aaf7b0f26485f48aee31a60fc /scripting
parent30fa383f27d9eed05d699681afb1ce76fb4248f9 (diff)
cid#1545222 COPY_INSTEAD_OF_MOVE
and cid#1545241 COPY_INSTEAD_OF_MOVE cid#1545303 COPY_INSTEAD_OF_MOVE cid#1545315 COPY_INSTEAD_OF_MOVE cid#1545319 COPY_INSTEAD_OF_MOVE cid#1545322 COPY_INSTEAD_OF_MOVE Change-Id: I284ba6e395f72abd7939667a8367ac99ab64194d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160955 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/ActiveMSPList.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripting/source/provider/ActiveMSPList.cxx b/scripting/source/provider/ActiveMSPList.cxx
index fbd2b2b05331..8ff88be99512 100644
--- a/scripting/source/provider/ActiveMSPList.cxx
+++ b/scripting/source/provider/ActiveMSPList.cxx
@@ -275,19 +275,16 @@ ActiveMSPList::createNonDocMSPs()
OUString serviceName("com.sun.star.script.provider.MasterScriptProvider");
Sequence< Any > args{ Any(userDirString) };
- Reference< provider::XScriptProvider > userMsp( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, m_xContext ), UNO_QUERY );
// should check if provider reference is valid
- m_hMsps[ userDirString ] = userMsp;
+ m_hMsps[ userDirString ].set( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, m_xContext ), UNO_QUERY );
args = { Any(shareDirString) };
- Reference< provider::XScriptProvider > shareMsp( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, m_xContext ), UNO_QUERY );
// should check if provider reference is valid
- m_hMsps[ shareDirString ] = shareMsp;
+ m_hMsps[ shareDirString ].set( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, m_xContext ), UNO_QUERY );
args = { Any(bundledDirString) };
- Reference< provider::XScriptProvider > bundledMsp( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, m_xContext ), UNO_QUERY );
// should check if provider reference is valid
- m_hMsps[ bundledDirString ] = bundledMsp;
+ m_hMsps[ bundledDirString ].set( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, m_xContext ), UNO_QUERY );
}
} // namespace func_provider