diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-11 15:46:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-11 15:52:29 +0200 |
commit | 22edbdf53cc22c6cd5bb1cff99508fe4f588f462 (patch) | |
tree | 37e63d4415a048f25a476325bae6919a3aa929c9 /stoc | |
parent | f1702566befe8771210194d767dbea0022d0eae3 (diff) |
No need to support "prefix" in DllComponentLoader
...which is only used for extension components, and only while they are live-
deployed into an soffice process and thus offloaded to an additional uno
process (which never happens for bundled extensions), cf.
cppuhelper::ServiceManager::loadImplementation
(cppuhelper/source/servicemanager.cxx), and (at least non-bundled) extensions
should never use the "prefix" feature anyway, cf.
3bafe5f5f529f6539363c5a291dd13ef1e2cbbde "Extension shared library components
must not use the 'prefix' feature."
Change-Id: I19c4b71029eccf0c4f3d4481ea5f3542205f685e
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/loader/dllcomponentloader.cxx | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/stoc/source/loader/dllcomponentloader.cxx b/stoc/source/loader/dllcomponentloader.cxx index 854487dcecb0..9720ac09d916 100644 --- a/stoc/source/loader/dllcomponentloader.cxx +++ b/stoc/source/loader/dllcomponentloader.cxx @@ -161,31 +161,13 @@ void DllComponentLoader::initialize( const ::com::sun::star::uno::Sequence< ::co //************************************************************************* Reference<XInterface> SAL_CALL DllComponentLoader::activate( const OUString & rImplName, const OUString &, const OUString & rLibName, - const Reference< XRegistryKey > & xKey ) + const Reference< XRegistryKey > & ) throw(CannotActivateFactoryException, RuntimeException) { - OUString aPrefix; - if( xKey.is() ) - { - Reference<XRegistryKey > xActivatorKey = xKey->openKey( - OUString("/UNO/ACTIVATOR") ); - if (xActivatorKey.is() && xActivatorKey->getValueType() == RegistryValueType_ASCII ) - { - Reference<XRegistryKey > xPrefixKey = xKey->openKey( - OUString("/UNO/PREFIX") ); - if( xPrefixKey.is() && xPrefixKey->getValueType() == RegistryValueType_ASCII ) - { - aPrefix = xPrefixKey->getAsciiValue(); - if( !aPrefix.isEmpty() ) - aPrefix = aPrefix + "_"; - } - } - } - return loadSharedLibComponentFactory( cppu::bootstrap_expandUri(rLibName), OUString(), rImplName, m_xSMgr, - css::uno::Reference<css::registry::XRegistryKey>(), aPrefix ); + css::uno::Reference<css::registry::XRegistryKey>(), OUString() ); } |