summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 08:52:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 09:51:42 +0200
commit05f67637fc4f71750dda46fccf0bed5b3fd99233 (patch)
treec5221d056688a87607ffe9e86521a606eb7fa956 /vcl
parent67a0889450daa6b9c9c799dab2d9da3a5044cb5d (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')
-rw-r--r--vcl/quartz/salgdicommon.cxx9
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;
}