0 => nullptr fix.
authorCarl Hetherington <cth@carlh.net>
Tue, 26 Jan 2021 23:38:32 +0000 (00:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 26 Jan 2021 23:38:32 +0000 (00:38 +0100)
src/openjpeg_image.cc

index d17943affe93e010f07f14bfc65d0e557563bea4..6cfd312b1e25406719194a2205d8b45aba642d3b 100644 (file)
@@ -130,7 +130,7 @@ OpenJPEGImage::create (Size size)
 
        /* XXX: is this _SRGB right? */
        _opj_image = opj_image_create (3, &cmptparm[0], OPJ_CLRSPC_SRGB);
-       if (_opj_image == 0) {
+       if (_opj_image == nullptr) {
                throw std::runtime_error ("could not create libopenjpeg image");
        }