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

loplugin:cstylecast: deal with remaining pointer casts

Change-Id: I8bd47784ae34ecd57f43b1e680ab863a6272c32f
üst 1234f96b
...@@ -171,7 +171,7 @@ Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames() ...@@ -171,7 +171,7 @@ Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames()
Reference< XInterface > PPPOptimizerDialog_createInstance( const Reference< XComponentContext > & rSMgr) Reference< XInterface > PPPOptimizerDialog_createInstance( const Reference< XComponentContext > & rSMgr)
throw( Exception ) throw( Exception )
{ {
return (cppu::OWeakObject*) new PPPOptimizerDialog( rSMgr ); return static_cast<cppu::OWeakObject*>(new PPPOptimizerDialog( rSMgr ));
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -728,9 +728,9 @@ static void unzipToBuffer( char* pBegin, unsigned int nLen, ...@@ -728,9 +728,9 @@ static void unzipToBuffer( char* pBegin, unsigned int nLen,
z_stream aZStr; z_stream aZStr;
aZStr.next_in = reinterpret_cast<Bytef *>(pBegin); aZStr.next_in = reinterpret_cast<Bytef *>(pBegin);
aZStr.avail_in = nLen; aZStr.avail_in = nLen;
aZStr.zalloc = ( alloc_func )0; aZStr.zalloc = nullptr;
aZStr.zfree = ( free_func )0; aZStr.zfree = nullptr;
aZStr.opaque = ( voidpf )0; aZStr.opaque = nullptr;
int err = inflateInit(&aZStr); int err = inflateInit(&aZStr);
......
...@@ -100,10 +100,10 @@ int main(int argc, char **argv) ...@@ -100,10 +100,10 @@ int main(int argc, char **argv)
? new GooString( aPwBuf ) ? new GooString( aPwBuf )
: (ownerPassword[0] != '\001' : (ownerPassword[0] != '\001'
? new GooString(ownerPassword) ? new GooString(ownerPassword)
: (GooString *)NULL ) ); : nullptr ) );
GooString* pUserPasswordStr( userPassword[0] != '\001' GooString* pUserPasswordStr( userPassword[0] != '\001'
? new GooString(userPassword) ? new GooString(userPassword)
: (GooString *)NULL ); : nullptr );
if( outputFile[0] != '\001' ) if( outputFile[0] != '\001' )
g_binary_out = fopen(outputFile,"wb"); g_binary_out = fopen(outputFile,"wb");
......
...@@ -1352,7 +1352,7 @@ void PresenterAccessible::AccessibleObject::ThrowIfDisposed() const ...@@ -1352,7 +1352,7 @@ void PresenterAccessible::AccessibleObject::ThrowIfDisposed() const
throw (lang::DisposedException) throw (lang::DisposedException)
{ {
if (rBHelper.bDisposed || rBHelper.bInDispose) if (rBHelper.bDisposed || rBHelper.bInDispose)
throw lang::DisposedException("object has already been disposed", uno::Reference<uno::XInterface>((uno::XWeak*)(this))); throw lang::DisposedException("object has already been disposed", uno::Reference<uno::XInterface>(const_cast<uno::XWeak*>(static_cast<uno::XWeak const *>(this))));
} }
//===== AccessibleStateSet ==================================================== //===== AccessibleStateSet ====================================================
......
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