Kaydet (Commit) c96f4e56 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: Ica7659b636d1277716153ef39025cf539b355fb2
üst 03b2b852
...@@ -44,7 +44,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL smd_component_getFactory( const sal_Char* pI ...@@ -44,7 +44,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL smd_component_getFactory( const sal_Char* pI
{ {
// Define variables which are used in following macros. // Define variables which are used in following macros.
Reference< XSingleServiceFactory > xFactory ; Reference< XSingleServiceFactory > xFactory ;
Reference< XMultiServiceFactory > xServiceManager( reinterpret_cast< XMultiServiceFactory* >( pServiceManager ) ) ; Reference< XMultiServiceFactory > xServiceManager( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
if( SmFilterDetect::impl_getStaticImplementationName().equalsAscii( pImplementationName ) ) if( SmFilterDetect::impl_getStaticImplementationName().equalsAscii( pImplementationName ) )
{ {
......
...@@ -1778,7 +1778,7 @@ IMPL_LINK( SmSymDefineDialog, SubsetChangeHdl, ListBox *, EMPTYARG pListBox ) ...@@ -1778,7 +1778,7 @@ IMPL_LINK( SmSymDefineDialog, SubsetChangeHdl, ListBox *, EMPTYARG pListBox )
sal_Int32 nPos = pFontsSubsetLB->GetSelectEntryPos(); sal_Int32 nPos = pFontsSubsetLB->GetSelectEntryPos();
if (LISTBOX_ENTRY_NOTFOUND != nPos) if (LISTBOX_ENTRY_NOTFOUND != nPos)
{ {
const Subset* pSubset = reinterpret_cast<const Subset*> (pFontsSubsetLB->GetEntryData( nPos )); const Subset* pSubset = static_cast<const Subset*> (pFontsSubsetLB->GetEntryData( nPos ));
if (pSubset) if (pSubset)
{ {
pCharsetDisplay->SelectCharacter( pSubset->GetRangeMin() ); pCharsetDisplay->SelectCharacter( pSubset->GetRangeMin() );
......
...@@ -49,7 +49,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL sm_component_getFactory( const sal_Char* pIm ...@@ -49,7 +49,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL sm_component_getFactory( const sal_Char* pIm
{ {
// Define variables which are used in following macros. // Define variables which are used in following macros.
Reference< XSingleServiceFactory > xFactory ; Reference< XSingleServiceFactory > xFactory ;
Reference< XMultiServiceFactory > xServiceManager( reinterpret_cast< XMultiServiceFactory* >( pServiceManager ) ) ; Reference< XMultiServiceFactory > xServiceManager( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ;
if( SmXMLImport_getImplementationName().equalsAscii( pImplementationName )) if( SmXMLImport_getImplementationName().equalsAscii( pImplementationName ))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment