diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-07-29 16:12:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-07-29 16:12:33 +0200 |
commit | dea278910731ddd8856fa122d59d83e01bdff87f (patch) | |
tree | 9aa1046d9486b918bc9dbda0ca10b2213eaf68db /connectivity | |
parent | cb995849939e4b732dda952ec994e42ac0035348 (diff) |
Fix *_component_getFactory function type
Change-Id: I827fd727eb49ce19da847327d78bca531a11bc1a
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/manager/mregistration.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/manager/mregistration.cxx b/connectivity/source/manager/mregistration.cxx index 45eff1864774..ec11e696ca61 100644 --- a/connectivity/source/manager/mregistration.cxx +++ b/connectivity/source/manager/mregistration.cxx @@ -34,7 +34,7 @@ extern "C" { -SAL_DLLPUBLIC_EXPORT void* SAL_CALL sdbc2_component_getFactory(const sal_Char* _pImplName, ::com::sun::star::lang::XMultiServiceFactory* _pServiceManager, void* /*_pRegistryKey*/) +SAL_DLLPUBLIC_EXPORT void* SAL_CALL sdbc2_component_getFactory(const sal_Char* _pImplName, void * _pServiceManager, void* /*_pRegistryKey*/) { void* pRet = NULL; @@ -42,7 +42,8 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL sdbc2_component_getFactory(const sal_Char* _ { Reference< XSingleServiceFactory > xFactory( ::cppu::createOneInstanceFactory( - _pServiceManager, + static_cast<css::lang::XMultiServiceFactory *>( + _pServiceManager), ::drivermanager::OSDBCDriverManager::getImplementationName_static(), ::drivermanager::OSDBCDriverManager::Create, ::drivermanager::OSDBCDriverManager::getSupportedServiceNames_static() |