Remove pointless check in QImageData::create()

"height <= 0" already verified above.

Change-Id: Ia2ab90a4cd5533f7b5101686876c2c2cc3e275ac
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Maks Naumov 2014-09-17 20:51:14 +03:00
parent fcc6b6daff
commit 1394962ceb

View File

@ -797,7 +797,6 @@ QImageData *QImageData::create(uchar *data, int width, int height, int bpl, QIm
|| INT_MAX/sizeof(uchar *) < uint(height) || INT_MAX/sizeof(uchar *) < uint(height)
|| INT_MAX/uint(depth) < uint(width) || INT_MAX/uint(depth) < uint(width)
|| bpl <= 0 || bpl <= 0
|| height <= 0
|| bpl < min_bytes_per_line || bpl < min_bytes_per_line
|| INT_MAX/uint(bpl) < uint(height)) || INT_MAX/uint(bpl) < uint(height))
return d; // invalid parameter(s) return d; // invalid parameter(s)