summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-10 11:11:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-10 11:11:00 +0200
commitd16bb62d226ede68899f14a2c037158d94c61620 (patch)
tree3d6a66bec8ec0f549c1318815658306d76aa1386 /connectivity/source
parent4789eab61c60466e5b6b7d7fad14b128fb851e6f (diff)
Fix function signature
Change-Id: Ia3cd228009792d2e5c2e3b74e740341bb0088867
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/cpool/Zregistration.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/cpool/Zregistration.cxx b/connectivity/source/cpool/Zregistration.cxx
index c10ce441ccce..8367c970ed0f 100644
--- a/connectivity/source/cpool/Zregistration.cxx
+++ b/connectivity/source/cpool/Zregistration.cxx
@@ -34,7 +34,7 @@ extern "C"
{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbpool2_component_getFactory(const sal_Char* _pImplName, ::com::sun::star::lang::XMultiServiceFactory* _pServiceManager, void* /*_pRegistryKey*/)
+SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbpool2_component_getFactory(const sal_Char* _pImplName, void * _pServiceManager, void* /*_pRegistryKey*/)
{
void* pRet = NULL;
@@ -42,7 +42,8 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbpool2_component_getFactory(const sal_Char*
{
Reference< XSingleServiceFactory > xFactory(
::cppu::createOneInstanceFactory(
- _pServiceManager,
+ static_cast<css::lang::XMultiServiceFactory *>(
+ _pServiceManager),
OPoolCollection::getImplementationName_Static(),
OPoolCollection::CreateInstance,
OPoolCollection::getSupportedServiceNames_Static()