diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 08:52:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 09:51:42 +0200 |
commit | 05f67637fc4f71750dda46fccf0bed5b3fd99233 (patch) | |
tree | c5221d056688a87607ffe9e86521a606eb7fa956 /vcl/quartz | |
parent | 67a0889450daa6b9c9c799dab2d9da3a5044cb5d (diff) |
new cannot return nullptr
unless we are using std::nothrow
Change-Id: I3bdd13c8ce18f4e977f18ee5196311bf4fc62de0
Reviewed-on: https://gerrit.libreoffice.org/38998
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index 2f36c76d4303..73cd294104ce 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -1714,13 +1714,10 @@ namespace { CGPoint* makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtAry) { CGPoint *CGpoints = new CGPoint[nPoints]; - if ( CGpoints ) + for(sal_uLong i=0;i<nPoints;i++) { - for(sal_uLong i=0;i<nPoints;i++) - { - CGpoints[i].x = pPtAry[i].mnX; - CGpoints[i].y = pPtAry[i].mnY; - } + CGpoints[i].x = pPtAry[i].mnX; + CGpoints[i].y = pPtAry[i].mnY; } return CGpoints; } |