QRegion: remove check for null ptr after "new" operator

Change-Id: Iebba0b1f024e22cd36a04c53377b3958638b389e
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Maks Naumov 2014-09-06 19:18:28 +03:00
parent fefa4dc1f0
commit e5dbef74b4

View File

@ -3521,8 +3521,7 @@ static QRegionPrivate *PolygonRegion(const QPoint *Pts, int Count, int rule)
POINTBLOCK *tmpPtBlock; POINTBLOCK *tmpPtBlock;
int numFullPtBlocks = 0; int numFullPtBlocks = 0;
if (!(region = new QRegionPrivate)) region = new QRegionPrivate;
return 0;
/* special case a rectangle */ /* special case a rectangle */
if (((Count == 4) || if (((Count == 4) ||