summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-03-31 17:59:37 +0300
committerTor Lillqvist <tml@collabora.com>2014-03-31 18:00:59 +0300
commit449aa3c6757da834e03129dfff40ac74b385f0e4 (patch)
tree20deaea4be7c8872bbd1e4ab2c6d9a5c61d59b43 /vcl
parenta13362ef97d7cb7216009fe7002a050516895cb4 (diff)
Just spell out the NULL instead of having a const variable for it
Change-Id: Iee45a5bb80a1d3149aa231f2848910eee415a64b
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salgdicommon.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 8d4b0355eefb..d6283253cd47 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -56,7 +56,6 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
return;
}
(void)bPixelSnap; // TODO
- const CGAffineTransform* pTransform = NULL;
const bool bHasCurves = rPolygon.areControlPointsUsed();
for( int nPointIdx = 0, nPrevIdx = 0;; nPrevIdx = nPointIdx++ )
@@ -91,7 +90,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
if( !nPointIdx )
{
// first point => just move there
- CGPathMoveToPoint( xPath, pTransform, aPoint.getX(), aPoint.getY() );
+ CGPathMoveToPoint( xPath, NULL, aPoint.getX(), aPoint.getY() );
continue;
}
@@ -104,7 +103,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
if( !bPendingCurve ) // line segment
{
- CGPathAddLineToPoint( xPath, pTransform, aPoint.getX(), aPoint.getY() );
+ CGPathAddLineToPoint( xPath, NULL, aPoint.getX(), aPoint.getY() );
}
else // cubic bezier segment
{
@@ -115,7 +114,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
aCP1 += aHalfPointOfs;
aCP2 += aHalfPointOfs;
}
- CGPathAddCurveToPoint( xPath, pTransform, aCP1.getX(), aCP1.getY(),
+ CGPathAddCurveToPoint( xPath, NULL, aCP1.getX(), aCP1.getY(),
aCP2.getX(), aCP2.getY(), aPoint.getX(), aPoint.getY() );
}
}