summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:16:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:16:04 +0200
commit7956c4c5178a77bf1c46cb1f129b8318c28fbb46 (patch)
treeb7be565243dc5353ff0a783a8bec279781b57c8d /scaddins
parentbbaa7def08d80e998302e03058e132c87a728bc7 (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I47be8a3e4be0a19fb476ab551e8bf394244a66a4
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysis.cxx2
-rw-r--r--scaddins/source/datefunc/datefunc.cxx2
-rw-r--r--scaddins/source/pricing/pricing.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index e801f19bfed7..a5b84f6d6a85 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -49,7 +49,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL analysis_component_getFactory(
if( pServiceManager && OUString::createFromAscii( pImplName ) == AnalysisAddIn::getImplementationName_Static() )
{
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
- reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
+ static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
AnalysisAddIn::getImplementationName_Static(),
AnalysisAddIn_CreateInstance,
AnalysisAddIn::getSupportedServiceNames_Static() ) );
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 0aa2d7d40ee6..adfd32fda859 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -180,7 +180,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL date_component_getFactory(
OUString::createFromAscii( pImplName ) == ScaDateAddIn::getImplementationName_Static() )
{
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
- reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
+ static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
ScaDateAddIn::getImplementationName_Static(),
ScaDateAddIn_CreateInstance,
ScaDateAddIn::getSupportedServiceNames_Static() ) );
diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx
index 03e7f3965c7a..ee23ef4dd36a 100644
--- a/scaddins/source/pricing/pricing.cxx
+++ b/scaddins/source/pricing/pricing.cxx
@@ -185,7 +185,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL pricing_component_getFactory(
OUString::createFromAscii( pImplName ) == ScaPricingAddIn::getImplementationName_Static() )
{
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
- reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
+ static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
ScaPricingAddIn::getImplementationName_Static(),
ScaPricingAddIn_CreateInstance,
ScaPricingAddIn::getSupportedServiceNames_Static() ) );