diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-27 00:38:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-27 00:38:32 +0100 |
| commit | ce29219e473fba936fd11a73c9a24b62722c3114 (patch) | |
| tree | a5c6926227053d272e53ad2647c48bffd74417b4 /src | |
| parent | f8882632e7f2968f97f551615da3e8403a398992 (diff) | |
0 => nullptr fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/openjpeg_image.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openjpeg_image.cc b/src/openjpeg_image.cc index d17943af..6cfd312b 100644 --- a/src/openjpeg_image.cc +++ b/src/openjpeg_image.cc @@ -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"); } |
