Mercurial > hg > orthanc-stl
comparison Sources/VTKToolbox.cpp @ 40:8a1daa321afe
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Apr 2024 17:50:06 +0200 |
parents | 2460b376d3f7 |
children |
comparison
equal
deleted
inserted
replaced
39:b6910092bcca | 40:8a1daa321afe |
---|---|
214 { | 214 { |
215 private: | 215 private: |
216 nifti_image* image_; | 216 nifti_image* image_; |
217 | 217 |
218 public: | 218 public: |
219 NiftiHeader(const std::string& nifti) | 219 explicit NiftiHeader(const std::string& nifti) |
220 { | 220 { |
221 nifti_1_header header; | 221 nifti_1_header header; |
222 if (nifti.size() < sizeof(header)) | 222 if (nifti.size() < sizeof(header)) |
223 { | 223 { |
224 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); | 224 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); |