summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-08 12:36:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-10 12:02:44 +0200
commit366d08f2f6d4de922f6099c62bb81b49d89e0a68 (patch)
treeb232884af6e844c2f0994859e4b42efbc1ce654c /canvas
parent75a2257a5bd716a9f937abe5e53f305c983afd5d (diff)
new loplugin:simplifypointertobool
Change-Id: Iff68e8f379614a6ab6a6e0d1bad18e70bc76d76a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91907 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/canvascustomspritehelper.cxx10
-rw-r--r--canvas/source/vcl/canvascustomsprite.cxx2
-rw-r--r--canvas/source/vcl/spritehelper.cxx2
3 files changed, 7 insertions, 7 deletions
diff --git a/canvas/source/tools/canvascustomspritehelper.cxx b/canvas/source/tools/canvascustomspritehelper.cxx
index 5b1c65eba584..ef02a9d5a418 100644
--- a/canvas/source/tools/canvascustomspritehelper.cxx
+++ b/canvas/source/tools/canvascustomspritehelper.cxx
@@ -223,7 +223,7 @@ namespace canvas
void CanvasCustomSpriteHelper::setAlpha( const Sprite::Reference& rSprite,
double alpha )
{
- if( !mpSpriteCanvas.get() )
+ if( !mpSpriteCanvas )
return; // we're disposed
if( alpha != mfAlpha )
@@ -244,7 +244,7 @@ namespace canvas
const rendering::ViewState& viewState,
const rendering::RenderState& renderState )
{
- if( !mpSpriteCanvas.get() )
+ if( !mpSpriteCanvas )
return; // we're disposed
::basegfx::B2DHomMatrix aTransform;
@@ -330,7 +330,7 @@ namespace canvas
void CanvasCustomSpriteHelper::setPriority( const Sprite::Reference& rSprite,
double nPriority )
{
- if( !mpSpriteCanvas.get() )
+ if( !mpSpriteCanvas )
return; // we're disposed
if( nPriority != mfPriority )
@@ -348,7 +348,7 @@ namespace canvas
void CanvasCustomSpriteHelper::show( const Sprite::Reference& rSprite )
{
- if( !mpSpriteCanvas.get() )
+ if( !mpSpriteCanvas )
return; // we're disposed
if( mbActive )
@@ -370,7 +370,7 @@ namespace canvas
void CanvasCustomSpriteHelper::hide( const Sprite::Reference& rSprite )
{
- if( !mpSpriteCanvas.get() )
+ if( !mpSpriteCanvas )
return; // we're disposed
if( !mbActive )
diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx
index 74ed15836004..9d1f83a74ef7 100644
--- a/canvas/source/vcl/canvascustomsprite.cxx
+++ b/canvas/source/vcl/canvascustomsprite.cxx
@@ -39,7 +39,7 @@ namespace vclcanvas
const OutDevProviderSharedPtr& rOutDevProvider,
bool bShowSpriteBounds )
{
- ENSURE_OR_THROW( rOwningSpriteCanvas.get() &&
+ ENSURE_OR_THROW( rOwningSpriteCanvas &&
rOutDevProvider,
"CanvasCustomSprite::CanvasCustomSprite(): Invalid sprite canvas" );
diff --git a/canvas/source/vcl/spritehelper.cxx b/canvas/source/vcl/spritehelper.cxx
index 63a9407642a7..df8550c6c9f2 100644
--- a/canvas/source/vcl/spritehelper.cxx
+++ b/canvas/source/vcl/spritehelper.cxx
@@ -60,7 +60,7 @@ namespace vclcanvas
const BackBufferSharedPtr& rBackBufferMask,
bool bShowSpriteBounds )
{
- ENSURE_OR_THROW( rOwningSpriteCanvas.get() && rBackBuffer && rBackBufferMask,
+ ENSURE_OR_THROW( rOwningSpriteCanvas && rBackBuffer && rBackBufferMask,
"SpriteHelper::init(): Invalid sprite canvas or back buffer" );
mpBackBuffer = rBackBuffer;