diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 13:56:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:23:04 +0200 |
commit | c504780e7883e911916689c12709d64d78125422 (patch) | |
tree | 55b6551855f14d14454f9bd6302870fa8766c61b /stoc/source/servicemanager | |
parent | 56a9a3a2d7f64c277b3dadd5a910a1183a47ac69 (diff) |
loplugin:sequenceloop in starmath..svl
Change-Id: I473a8eec9cbf6d44b55ffd6f2233bf39cf6217da
Reviewed-on: https://gerrit.libreoffice.org/77528
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/servicemanager')
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 2af11198678a..880b478ec847 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -773,7 +773,7 @@ Reference< XInterface > OServiceManager::createInstanceWithContext( } #endif - Sequence< Reference< XInterface > > factories( + const Sequence< Reference< XInterface > > factories( queryServiceFactories( rServiceSpecifier, xContext ) ); for ( Reference< XInterface > const & xFactory : factories ) { @@ -825,7 +825,7 @@ Reference< XInterface > OServiceManager::createInstanceWithArgumentsAndContext( } #endif - Sequence< Reference< XInterface > > factories( + const Sequence< Reference< XInterface > > factories( queryServiceFactories( rServiceSpecifier, xContext ) ); for ( Reference< XInterface > const & xFactory : factories ) { @@ -1038,7 +1038,7 @@ void OServiceManager::insert( const Any & Element ) m_ImplementationNameMap[ aImplName ] = xEle; //put into the service map - Sequence< OUString > aServiceNames = xInfo->getSupportedServiceNames(); + const Sequence< OUString > aServiceNames = xInfo->getSupportedServiceNames(); for( const OUString& rServiceName : aServiceNames ) { m_ServiceMap.emplace( @@ -1122,7 +1122,7 @@ void OServiceManager::remove( const Any & Element ) if( !xSF.is() ) return; - Sequence< OUString > aServiceNames = xSF->getSupportedServiceNames(); + const Sequence< OUString > aServiceNames = xSF->getSupportedServiceNames(); for( const OUString& rServiceName : aServiceNames ) { pair<HashMultimap_OWString_Interface::iterator, HashMultimap_OWString_Interface::iterator> p = @@ -1305,7 +1305,7 @@ Sequence<OUString> ORegistryServiceManager::getFromServiceName( Reference<XInterface > ORegistryServiceManager::loadWithServiceName( const OUString& serviceName, Reference< XComponentContext > const & xContext ) { - Sequence<OUString> implEntries = getFromServiceName( serviceName ); + const Sequence<OUString> implEntries = getFromServiceName( serviceName ); for (const auto& rEntry : implEntries) { Reference< XInterface > x( loadWithImplementationName( rEntry, xContext ) ); @@ -1411,7 +1411,7 @@ Reference<XEnumeration > ORegistryServiceManager::createContentEnumeration( check_undisposed(); MutexGuard aGuard(m_mutex); // get all implementation names registered under this service name from the registry - Sequence<OUString> aImpls = getFromServiceName( aServiceName ); + const Sequence<OUString> aImpls = getFromServiceName( aServiceName ); // load and insert all factories specified by the registry for( const OUString& aImplName : aImpls ) { |