loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8e3adffc4eca232889bbffd8efca48bad78a8b91
This commit is contained in:
parent
761e0ae0a7
commit
638a4ec6dc
@ -113,7 +113,7 @@ namespace cairocanvas
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
aRV = uno::Any( reinterpret_cast<sal_Int64>( (BitmapEx *) NULL ) );
|
||||
aRV = uno::Any( reinterpret_cast<sal_Int64>( nullptr ) );
|
||||
if ( !mbHasAlpha )
|
||||
break;
|
||||
|
||||
|
@ -139,7 +139,7 @@ namespace vclcanvas
|
||||
|
||||
Bitmap::ScopedReadAccess pReadAccess( aBitmap );
|
||||
Bitmap::ScopedReadAccess pAlphaReadAccess( aAlpha.IsEmpty() ?
|
||||
(BitmapReadAccess*)NULL : aAlpha.AcquireReadAccess(),
|
||||
nullptr : aAlpha.AcquireReadAccess(),
|
||||
aAlpha );
|
||||
|
||||
ENSURE_OR_THROW( pReadAccess.get() != NULL,
|
||||
@ -218,7 +218,7 @@ namespace vclcanvas
|
||||
{
|
||||
Bitmap::ScopedWriteAccess pWriteAccess( aBitmap );
|
||||
Bitmap::ScopedWriteAccess pAlphaWriteAccess( aAlpha.IsEmpty() ?
|
||||
(BitmapWriteAccess*)NULL : aAlpha.AcquireWriteAccess(),
|
||||
nullptr : aAlpha.AcquireWriteAccess(),
|
||||
aAlpha );
|
||||
|
||||
if( pAlphaWriteAccess.get() )
|
||||
@ -459,7 +459,7 @@ namespace vclcanvas
|
||||
{
|
||||
Bitmap::ScopedWriteAccess pWriteAccess( aBitmap );
|
||||
Bitmap::ScopedWriteAccess pAlphaWriteAccess( aAlpha.IsEmpty() ?
|
||||
(BitmapWriteAccess*)NULL : aAlpha.AcquireWriteAccess(),
|
||||
nullptr : aAlpha.AcquireWriteAccess(),
|
||||
aAlpha );
|
||||
|
||||
ENSURE_OR_THROW( pWriteAccess.get() != NULL,
|
||||
@ -512,7 +512,7 @@ namespace vclcanvas
|
||||
|
||||
Bitmap::ScopedReadAccess pReadAccess( aBitmap );
|
||||
Bitmap::ScopedReadAccess pAlphaReadAccess( aAlpha.IsEmpty() ?
|
||||
(BitmapReadAccess*)NULL : aAlpha.AcquireReadAccess(),
|
||||
nullptr : aAlpha.AcquireReadAccess(),
|
||||
aAlpha );
|
||||
ENSURE_OR_THROW( pReadAccess.get() != NULL,
|
||||
"Could not acquire read access to bitmap" );
|
||||
|
@ -713,7 +713,7 @@ namespace vclcanvas
|
||||
// TODO(E1): Return value
|
||||
// TODO(F1): FillRule
|
||||
gradientFill( mpOutDev->getOutDev(),
|
||||
mp2ndOutDev.get() ? &mp2ndOutDev->getOutDev() : (OutputDevice*)NULL,
|
||||
mp2ndOutDev.get() ? &mp2ndOutDev->getOutDev() : nullptr,
|
||||
rValues,
|
||||
aColors,
|
||||
aPolyPoly,
|
||||
|
@ -258,7 +258,7 @@ namespace vclcanvas
|
||||
Bitmap::ScopedReadAccess pReadAccess( aSrcBitmap );
|
||||
Bitmap::ScopedReadAccess pAlphaReadAccess( rBitmap.IsTransparent() ?
|
||||
aSrcAlpha.AcquireReadAccess() :
|
||||
(BitmapReadAccess*)NULL,
|
||||
nullptr,
|
||||
aSrcAlpha );
|
||||
|
||||
if( pReadAccess.get() == NULL ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user