[Image] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-19 17:13:25 +02:00
parent 28698a41e3
commit b7097e4bd5
3 changed files with 20 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ private:
// Extract image into a general RGB format recognised by the ImageView class
int format = IB_CF_RGB24;
unsigned char *pPixelData = nullptr;
if (imageq.isNull() == false) {
if (!imageq.isNull()) {
pPixelData = new unsigned char[3 * (unsigned long)imageq.width() * (unsigned long)imageq.height()];
unsigned char *pPix = pPixelData;
for (int r = 0; r < imageq.height(); r++) {