summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 23:45:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 23:47:24 +0200
commit91cfdc9fbd84d1e7f2103efb702f52ccfd9993e5 (patch)
tree5648aefebc7416b9eb27506808e369041d5e30bb /vcl
parent8e9650ff54efd0e53973cf2dcf715cf7bfa2c8d3 (diff)
loplugin:staticmethods
Change-Id: Iafb48b20496924c64f9aaa3ec0965b023aef6a07
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/quartz/salgdi.h1
-rw-r--r--vcl/quartz/salgdicommon.cxx6
2 files changed, 5 insertions, 2 deletions
diff --git a/vcl/inc/quartz/salgdi.h b/vcl/inc/quartz/salgdi.h
index 346602c68f26..35fd6b866f10 100644
--- a/vcl/inc/quartz/salgdi.h
+++ b/vcl/inc/quartz/salgdi.h
@@ -298,7 +298,6 @@ public:
virtual bool drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency ) SAL_OVERRIDE;
- CGPoint* makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtAry);
// native widget rendering methods that require mirroring
#ifdef MACOSX
virtual bool hitTestNativeControl( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion,
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index ac65c7727f5d..d0be52a831a5 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1803,7 +1803,9 @@ void AquaSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalIn
}
}
-CGPoint* AquaSalGraphics::makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtAry)
+namespace {
+
+CGPoint* makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtAry)
{
CGPoint *CGpoints = new CGPoint[nPoints];
if ( CGpoints )
@@ -1817,6 +1819,8 @@ CGPoint* AquaSalGraphics::makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtA
return CGpoints;
}
+}
+
void AquaSalGraphics::invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nSalFlags )
{
if ( CheckContext() )