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

loplugin:cstylecast: deal with remaining pointer casts

Change-Id: I5060e9560f394f872c2338409813dd41f20a2fff
üst 801b9823
...@@ -147,7 +147,7 @@ OUString SAL_CALL LotusWordProImportFilter::detect( com::sun::star::uno::Sequenc ...@@ -147,7 +147,7 @@ OUString SAL_CALL LotusWordProImportFilter::detect( com::sun::star::uno::Sequenc
Sequence< ::sal_Int8 > aData; Sequence< ::sal_Int8 > aData;
sal_Int32 nLen = SAL_N_ELEMENTS( header ); sal_Int32 nLen = SAL_N_ELEMENTS( header );
if ( !( ( nLen == xInputStream->readBytes( aData, nLen ) ) if ( !( ( nLen == xInputStream->readBytes( aData, nLen ) )
&& ( memcmp( ( void* )header, (void*) aData.getConstArray(), nLen ) == 0 ) ) ) && ( memcmp( static_cast<void const *>(header), static_cast<void const *>(aData.getConstArray()), nLen ) == 0 ) ) )
sTypeName.clear(); sTypeName.clear();
return sTypeName; return sTypeName;
...@@ -193,7 +193,7 @@ Sequence< OUString > SAL_CALL LotusWordProImportFilter_getSupportedServiceNames( ...@@ -193,7 +193,7 @@ Sequence< OUString > SAL_CALL LotusWordProImportFilter_getSupportedServiceNames(
uno::Reference< XInterface > SAL_CALL LotusWordProImportFilter_createInstance( const uno::Reference< XMultiServiceFactory > & rSMgr) uno::Reference< XInterface > SAL_CALL LotusWordProImportFilter_createInstance( const uno::Reference< XMultiServiceFactory > & rSMgr)
throw( Exception ) throw( Exception )
{ {
return (cppu::OWeakObject*) new LotusWordProImportFilter( comphelper::getComponentContext(rSMgr) ); return static_cast<cppu::OWeakObject*>(new LotusWordProImportFilter( comphelper::getComponentContext(rSMgr) ));
} }
// XServiceInfo // XServiceInfo
......
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