summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/line.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-27 12:47:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-28 20:32:29 +0100
commit0820920e994cd2281cda34afa2235ee9aa1dd2c2 (patch)
tree711a08ebf8d8b32c3fb3164083bc44e2d79099e5 /vcl/source/outdev/line.cxx
parentfc011ac027da7574baa4b431ac800020170ba8b0 (diff)
drawOutDevDirect always passed a non-null OutputDevice*
likewise: DrawOutDevDirectProcess ImplDrawWavePixel DrawOutDevDirectCheck and various members of SalGraphics dropping redundant nullptr checks Change-Id: Iaa1ab7c8a605361a7c9cce0aeee974eec9ff246e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106788 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/outdev/line.cxx')
-rw-r--r--vcl/source/outdev/line.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/outdev/line.cxx b/vcl/source/outdev/line.cxx
index 95d2c44458d7..4a51ef68f120 100644
--- a/vcl/source/outdev/line.cxx
+++ b/vcl/source/outdev/line.cxx
@@ -78,7 +78,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
}
else
{
- mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), this );
+ mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), *this );
}
if( mpAlphaVDev )
@@ -141,7 +141,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
{
const Point aStartPt(ImplLogicToDevicePixel(rStartPt));
const Point aEndPt(ImplLogicToDevicePixel(rEndPt));
- mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), this );
+ mpGraphics->DrawLine( aStartPt.X(), aStartPt.Y(), aEndPt.X(), aEndPt.Y(), *this );
}
if( mpAlphaVDev )
@@ -253,7 +253,7 @@ void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const Lin
mpGraphics->DrawPolyLine(
aPolygon.GetSize(),
aPolygon.GetPointAry(),
- this);
+ *this);
}
}
}
@@ -287,7 +287,7 @@ void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const Lin
// need to subdivide, mpGraphics->DrawPolygon ignores curves
aPolygon.AdaptiveSubdivide(aPolygon);
- mpGraphics->DrawPolygon(aPolygon.GetSize(), aPolygon.GetConstPointAry(), this);
+ mpGraphics->DrawPolygon(aPolygon.GetSize(), aPolygon.GetConstPointAry(), *this);
}
}