]> Creatis software - clitk.git/blobdiff - common/clitkImageCommon.cxx
COMP: fix compilation errors for ITKv5
[clitk.git] / common / clitkImageCommon.cxx
index 83b9435854ef3f7bec71e764ccee787ba314e0f9..9193160096169859f7a670bd8363eb1e44813669 100644 (file)
@@ -66,7 +66,7 @@ itk::ImageIOBase::Pointer clitk::readImageHeader(const std::string & filename, b
   if (!reader) {
     if (exit_on_error) { //default behavior for tools who don't handle the problem
       clitkExceptionMacro("Error reading file " << filename << ", exiting immediately");
-    } else return NULL;
+    } else return (itk::ImageIOBase *) ITK_NULLPTR;
   }
   reader->SetFileName(filename);
   reader->ReadImageInformation();