clang-tidy nullptr

This commit is contained in:
Erik Frojdh
2020-06-10 08:30:12 +02:00
parent 265e96d675
commit 5f91198328
3 changed files with 6 additions and 6 deletions

View File

@ -722,7 +722,7 @@ int DetectorImpl::InsertGapPixels(char *image, char *&gpImage, bool quadEnable,
"Sending dummy data without gap pixels.\n";
double bytesPerPixel = (double)dr / 8.00;
int imagesize = nPixelsy * nPixelsx * bytesPerPixel;
if (gpImage == NULL) {
if (gpImage == nullptr) {
gpImage = new char[imagesize];
}
memset(gpImage, 0xFF, imagesize);
@ -789,7 +789,7 @@ int DetectorImpl::InsertGapPixels(char *image, char *&gpImage, bool quadEnable,
<< "nMod1TotPixelsx: " << nMod1TotPixelsx << "\n\t"
<< "divisionValue: " << divisionValue << "\n\n";
if (gpImage == NULL) {
if (gpImage == nullptr) {
gpImage = new char[imagesize];
}
memset(gpImage, 0xFF, imagesize);