summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-01-17 00:59:10 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-19 07:21:02 +0000
commitec9c7ebb575b592e188c5f6b545570b11744d063 (patch)
treee84517c0d8bfb9d004752a8b06c3812a181a7130 /vcl/quartz
parent54defd1bd3359c95e45891c7294847d0cebca753 (diff)
fdo#39440 vcl: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Ib6b9651b828287665f7248052855f0da2779806e Reviewed-on: https://gerrit.libreoffice.org/13968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salgdicommon.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 1c119ab7f45e..5e53a25d0fc0 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1694,12 +1694,11 @@ CGPoint* AquaSalGraphics::makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtA
void AquaSalGraphics::invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nSalFlags )
{
- CGPoint* CGpoints ;
if ( CheckContext() )
{
CG_TRACE("CGContextSaveGState(" << mrContext << ") " << ++mnContextStackDepth);
CGContextSaveGState(mrContext);
- CGpoints = makeCGptArray(nPoints,pPtAry);
+ CGPoint* CGpoints = makeCGptArray(nPoints,pPtAry);
CGContextAddLines ( mrContext, CGpoints, nPoints );
if ( nSalFlags & SAL_INVERT_TRACKFRAME )
{