diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-22 19:35:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-23 15:47:11 +0200 |
commit | d64d62f15eb98033273a90af3dc83b57b7b25359 (patch) | |
tree | 3001050624fe0f9b7330aba6c9dded2767ecfd44 /vcl | |
parent | 0f02412d6baf9edb54c62856c52cebfa707291b2 (diff) |
use a reference instead of a pointer
Change-Id: I15b23f8b8f469b9bfcadb0bd72b7f01f6b5c8fc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101190
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/map.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index e5ea1b416884..2430daec4f56 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -542,12 +542,12 @@ tools::Polygon OutputDevice::ImplLogicToDevicePixel( const tools::Polygon& rLogi { for ( i = 0; i < nPoints; i++ ) { - const Point* pPt = &(pPointAry[i]); + const Point& rPt = pPointAry[i]; Point aPt; - aPt.setX( ImplLogicToPixel( pPt->X()+maMapRes.mnMapOfsX, mnDPIX, + aPt.setX( ImplLogicToPixel( rPt.X()+maMapRes.mnMapOfsX, mnDPIX, maMapRes.mnMapScNumX, maMapRes.mnMapScDenomX, maThresRes.mnThresLogToPixX )+mnOutOffX+mnOutOffOrigX ); - aPt.setY( ImplLogicToPixel( pPt->Y()+maMapRes.mnMapOfsY, mnDPIY, + aPt.setY( ImplLogicToPixel( rPt.Y()+maMapRes.mnMapOfsY, mnDPIY, maMapRes.mnMapScNumY, maMapRes.mnMapScDenomY, maThresRes.mnThresLogToPixY )+mnOutOffY+mnOutOffOrigY ); aPoly[i] = aPt; |