diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:26:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:30:52 +0200 |
commit | ad3f1321f9a6e18c022e534e2f259cf78996d9b4 (patch) | |
tree | 543e3eff4a7f8b22ab374cf6182f1bdf84919541 /canvas | |
parent | eafd09e9fd0fcbddc40a5e23737f19937a9bd62e (diff) |
More loplugin:simplifybool
Change-Id: I445a6edc0fc2c840cde777e8664bac3362c9b6e2
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvas.cxx | 2 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvas.cxx | 2 | ||||
-rw-r--r-- | canvas/source/opengl/ogl_spritecanvas.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/cairo/cairo_canvas.cxx b/canvas/source/cairo/cairo_canvas.cxx index c494e91020fb..e27daa2384eb 100644 --- a/canvas/source/cairo/cairo_canvas.cxx +++ b/canvas/source/cairo/cairo_canvas.cxx @@ -93,7 +93,7 @@ namespace cairocanvas throw lang::NoSupportException( "Passed SystemGraphicsData invalid!" ); bool bHasCairo = pOutDev->SupportsCairo(); - ENSURE_ARG_OR_THROW(bHasCairo == true, "SpriteCanvas::SpriteCanvas: No Cairo capability"); + ENSURE_ARG_OR_THROW(bHasCairo, "SpriteCanvas::SpriteCanvas: No Cairo capability"); // setup helper maDeviceHelper.init( *this, *pOutDev ); diff --git a/canvas/source/cairo/cairo_spritecanvas.cxx b/canvas/source/cairo/cairo_spritecanvas.cxx index 61db9c889827..87379a8b37b8 100644 --- a/canvas/source/cairo/cairo_spritecanvas.cxx +++ b/canvas/source/cairo/cairo_spritecanvas.cxx @@ -86,7 +86,7 @@ namespace cairocanvas "Parent window not VCL window, or canvas out-of-process!", NULL); bool bHasCairo = pParentWindow->SupportsCairo(); - ENSURE_ARG_OR_THROW(bHasCairo == true, + ENSURE_ARG_OR_THROW(bHasCairo, "CairoSpriteCanvas::SpriteCanvas: No Cairo capability"); Size aPixelSize( pParentWindow->GetOutputSizePixel() ); diff --git a/canvas/source/opengl/ogl_spritecanvas.cxx b/canvas/source/opengl/ogl_spritecanvas.cxx index c378baeae21e..75d96b129400 100644 --- a/canvas/source/opengl/ogl_spritecanvas.cxx +++ b/canvas/source/opengl/ogl_spritecanvas.cxx @@ -97,7 +97,7 @@ namespace oglcanvas // avoid repaints on hidden window (hidden: not mapped to // screen). Return failure, since the screen really has _not_ // been updated (caller should try again later) - return !mbIsVisible ? false : SpriteCanvasBaseT::showBuffer( bUpdateAll ); + return mbIsVisible && SpriteCanvasBaseT::showBuffer( bUpdateAll ); } sal_Bool SAL_CALL SpriteCanvas::switchBuffer( sal_Bool bUpdateAll ) throw (uno::RuntimeException, std::exception) @@ -107,7 +107,7 @@ namespace oglcanvas // avoid repaints on hidden window (hidden: not mapped to // screen). Return failure, since the screen really has _not_ // been updated (caller should try again later) - return !mbIsVisible ? false : SpriteCanvasBaseT::switchBuffer( bUpdateAll ); + return mbIsVisible && SpriteCanvasBaseT::switchBuffer( bUpdateAll ); } uno::Reference< rendering::XAnimatedSprite > SAL_CALL SpriteCanvas::createSpriteFromAnimation( |