From 822a4dc500982afd40326bec997660765a2db126 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 17 Nov 2023 08:34:20 +0100 Subject: [PATCH] Use nullptr --- src/blurhash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blurhash.cpp b/src/blurhash.cpp index 175c58fd8..f58270a52 100644 --- a/src/blurhash.cpp +++ b/src/blurhash.cpp @@ -177,7 +177,7 @@ uint8_t *decode(const char *blurhash, int width, int height, int punch, int nCha uint8_t *pixelArray = createByteArray(bytesPerRow * height); if (decodeToArray(blurhash, width, height, punch, nChannels, pixelArray) == -1) { - return NULL; + return nullptr; } return pixelArray; }