Fix types of functions called via pointer (-fsanitze=function)

Change-Id: Ife0151a04477ce30bb132e6dfae9f4d3a74bf4b0
This commit is contained in:
Stephan Bergmann
2015-01-26 15:15:08 +01:00
parent b6ee5cf707
commit 3f5ccf572a
3 changed files with 13 additions and 8 deletions

View File

@@ -19,8 +19,6 @@
#include "cppuhelper/implementationentry.hxx"
#include <osl/diagnose.h>
#include "com/sun/star/lang/XMultiServiceFactory.hpp"
#include "com/sun/star/registry/XRegistryKey.hpp"
#include <service.hxx>
@@ -49,8 +47,8 @@ using namespace ::com::sun::star::uno;
extern "C"
{
SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaevents_component_getFactory(
const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager,
registry::XRegistryKey * pRegistryKey )
const sal_Char * pImplName, void * pServiceManager,
void * pRegistryKey )
{
OSL_TRACE("In component_getFactory");
return ::cppu::component_getFactoryHelper(