Image: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:42:42 +01:00
parent 2f0a2b79eb
commit 91d679dbc4
5 changed files with 17 additions and 17 deletions

View File

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