diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-27 12:52:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 07:17:51 +0200 |
commit | b32ead5dd27c6f2b760e4196ebe0378fb8ec1a69 (patch) | |
tree | e647c37f069db3be229a4b89bc44fd21e64128fa /cppcanvas/source/mtfrenderer | |
parent | 3956e4cb58033cae360beddf97136596ff3bb740 (diff) |
loplugin:checkunusedparams more part1
seems I got one of the checks wrong, and was missing a bunch of stuff
Change-Id: I2c662fc4e735f8d6cbe56c6f82906a60a580331b
Reviewed-on: https://gerrit.libreoffice.org/40481
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r-- | cppcanvas/source/mtfrenderer/bitmapaction.cxx | 6 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/cppcanvas/source/mtfrenderer/bitmapaction.cxx b/cppcanvas/source/mtfrenderer/bitmapaction.cxx index 2777abb7e24c..db8c597afcba 100644 --- a/cppcanvas/source/mtfrenderer/bitmapaction.cxx +++ b/cppcanvas/source/mtfrenderer/bitmapaction.cxx @@ -84,8 +84,7 @@ namespace cppcanvas const CanvasSharedPtr& rCanvas, const OutDevState& rState ) : CachedPrimitiveBase( rCanvas, true ), - mxBitmap( vcl::unotools::xBitmapFromBitmapEx( rCanvas->getUNOCanvas()->getDevice(), - rBmpEx ) ), + mxBitmap( vcl::unotools::xBitmapFromBitmapEx( rBmpEx ) ), mpCanvas( rCanvas ), maState() { @@ -112,8 +111,7 @@ namespace cppcanvas const CanvasSharedPtr& rCanvas, const OutDevState& rState ) : CachedPrimitiveBase( rCanvas, true ), - mxBitmap( vcl::unotools::xBitmapFromBitmapEx( rCanvas->getUNOCanvas()->getDevice(), - rBmpEx ) ), + mxBitmap( vcl::unotools::xBitmapFromBitmapEx( rBmpEx ) ), mpCanvas( rCanvas ), maState() { diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 2a2f75c9f7d0..79887c892857 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -1713,10 +1713,7 @@ namespace cppcanvas aMatrix ); aTexture.Alpha = 1.0 - aFill.getTransparency(); - aTexture.Bitmap = - vcl::unotools::xBitmapFromBitmapEx( - rCanvas->getUNOCanvas()->getDevice(), - aBmpEx ); + aTexture.Bitmap = vcl::unotools::xBitmapFromBitmapEx( aBmpEx ); if( aFill.isTiling() ) { aTexture.RepeatModeX = rendering::TexturingMode::REPEAT; |