diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx index 20c9cc6fc3ba..da8321aa84af 100644 --- a/unotools/source/ucbhelper/xtempfile.cxx +++ b/unotools/source/ucbhelper/xtempfile.cxx @@ -466,7 +466,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL utl_component_getFactory( { void * pRet = 0; css::uno::Reference< css::lang::XMultiServiceFactory > xSMgr( - reinterpret_cast< css::lang::XMultiServiceFactory * >( pServiceManager ) ); + static_cast< css::lang::XMultiServiceFactory * >( pServiceManager ) ); css::uno::Reference< css::lang::XSingleComponentFactory > xFactory; if (OTempFileService::getImplementationName_Static().equalsAscii( pImplName ) )