diff options
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/misc/services.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/forms/source/misc/services.cxx b/forms/source/misc/services.cxx index d4839c15275e..189cf35498a0 100644 --- a/forms/source/misc/services.cxx +++ b/forms/source/misc/services.cxx @@ -241,7 +241,7 @@ void SAL_CALL createRegistryInfo_FORMS() } -SAL_DLLPUBLIC_EXPORT void* SAL_CALL frm_component_getFactory(const sal_Char* _pImplName, XMultiServiceFactory* _pServiceManager, void* /*_pRegistryKey*/) +SAL_DLLPUBLIC_EXPORT void* SAL_CALL frm_component_getFactory(const sal_Char* _pImplName, void* _pServiceManager, void* /*_pRegistryKey*/) { if (!_pServiceManager || !_pImplName) return NULL; @@ -273,7 +273,8 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL frm_component_getFactory(const sal_Char* _pI Reference<XSingleServiceFactory> xFactory( ::cppu::createSingleFactory( - _pServiceManager, + static_cast<css::lang::XMultiServiceFactory*>( + _pServiceManager), *pClasses, aCurrentCreateFunction, *pServices |