diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-23 10:40:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-23 11:22:33 +0200 |
commit | 1900790736610f71b12c5f0b260672b090b0701c (patch) | |
tree | 5aa9189bdaebf0b5b8cdbdfa674d3c39947f0f7e /drawinglayer | |
parent | 168efab3c49b14f17bf455e74b8a9f153f5534a9 (diff) |
loplugin:constantparam in drawinglayer
Change-Id: I93b14a4ced909fa87bc3ad69d6fe9741a218018f
Diffstat (limited to 'drawinglayer')
3 files changed, 7 insertions, 12 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index c0e0db7d3993..9519507da2a8 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -248,8 +248,7 @@ namespace drawinglayer impBufferDevice::impBufferDevice( OutputDevice& rOutDev, - const basegfx::B2DRange& rRange, - bool bAddOffsetToMapping) + const basegfx::B2DRange& rRange) : mrOutDev(rOutDev), mpContent(nullptr), mpMask(nullptr), @@ -287,11 +286,8 @@ namespace drawinglayer MapMode aNewMapMode(mrOutDev.GetMapMode()); - if(bAddOffsetToMapping) - { - const Point aLogicTopLeft(mrOutDev.PixelToLogic(maDestPixel.TopLeft())); - aNewMapMode.SetOrigin(Point(-aLogicTopLeft.X(), -aLogicTopLeft.Y())); - } + const Point aLogicTopLeft(mrOutDev.PixelToLogic(maDestPixel.TopLeft())); + aNewMapMode.SetOrigin(Point(-aLogicTopLeft.X(), -aLogicTopLeft.Y())); mpContent->SetMapMode(aNewMapMode); diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx index b56cf58bb852..6dcd5d88b3ee 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx @@ -43,8 +43,7 @@ namespace drawinglayer public: impBufferDevice( OutputDevice& rOutDev, - const basegfx::B2DRange& rRange, - bool bAddOffsetToMapping); + const basegfx::B2DRange& rRange); ~impBufferDevice(); void paint(double fTrans = 0.0); diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index bfb5e46bcf7c..e6ce0f59fc43 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -856,7 +856,7 @@ namespace drawinglayer { aMask.transform(maCurrentTransformation); const basegfx::B2DRange aRange(basegfx::tools::getRange(aMask)); - impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); + impBufferDevice aBufferDevice(*mpOutputDevice, aRange); if(aBufferDevice.isVisible()) { @@ -933,7 +933,7 @@ namespace drawinglayer // transparence is in visible range basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D())); aRange.transform(maCurrentTransformation); - impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); + impBufferDevice aBufferDevice(*mpOutputDevice, aRange); if(aBufferDevice.isVisible()) { @@ -962,7 +962,7 @@ namespace drawinglayer { basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D())); aRange.transform(maCurrentTransformation); - impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); + impBufferDevice aBufferDevice(*mpOutputDevice, aRange); if(aBufferDevice.isVisible()) { |