loplugin:constantparam in drawinglayer

Change-Id: I93b14a4ced909fa87bc3ad69d6fe9741a218018f
This commit is contained in:
Noel Grandin
2016-03-23 10:40:09 +02:00
parent 168efab3c4
commit 1900790736
3 changed files with 7 additions and 12 deletions

View File

@@ -248,8 +248,7 @@ namespace drawinglayer
impBufferDevice::impBufferDevice( impBufferDevice::impBufferDevice(
OutputDevice& rOutDev, OutputDevice& rOutDev,
const basegfx::B2DRange& rRange, const basegfx::B2DRange& rRange)
bool bAddOffsetToMapping)
: mrOutDev(rOutDev), : mrOutDev(rOutDev),
mpContent(nullptr), mpContent(nullptr),
mpMask(nullptr), mpMask(nullptr),
@@ -287,11 +286,8 @@ namespace drawinglayer
MapMode aNewMapMode(mrOutDev.GetMapMode()); 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); mpContent->SetMapMode(aNewMapMode);

View File

@@ -43,8 +43,7 @@ namespace drawinglayer
public: public:
impBufferDevice( impBufferDevice(
OutputDevice& rOutDev, OutputDevice& rOutDev,
const basegfx::B2DRange& rRange, const basegfx::B2DRange& rRange);
bool bAddOffsetToMapping);
~impBufferDevice(); ~impBufferDevice();
void paint(double fTrans = 0.0); void paint(double fTrans = 0.0);

View File

@@ -856,7 +856,7 @@ namespace drawinglayer
{ {
aMask.transform(maCurrentTransformation); aMask.transform(maCurrentTransformation);
const basegfx::B2DRange aRange(basegfx::tools::getRange(aMask)); const basegfx::B2DRange aRange(basegfx::tools::getRange(aMask));
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
if(aBufferDevice.isVisible()) if(aBufferDevice.isVisible())
{ {
@@ -933,7 +933,7 @@ namespace drawinglayer
// transparence is in visible range // transparence is in visible range
basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D())); basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D()));
aRange.transform(maCurrentTransformation); aRange.transform(maCurrentTransformation);
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
if(aBufferDevice.isVisible()) if(aBufferDevice.isVisible())
{ {
@@ -962,7 +962,7 @@ namespace drawinglayer
{ {
basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D())); basegfx::B2DRange aRange(rTransCandidate.getChildren().getB2DRange(getViewInformation2D()));
aRange.transform(maCurrentTransformation); aRange.transform(maCurrentTransformation);
impBufferDevice aBufferDevice(*mpOutputDevice, aRange, true); impBufferDevice aBufferDevice(*mpOutputDevice, aRange);
if(aBufferDevice.isVisible()) if(aBufferDevice.isVisible())
{ {