Mercurial > hg > orthanc
diff OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4858:8b51d65584f0
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Dec 2021 15:32:08 +0100 |
parents | b3d0a3a4d890 |
children | 3e9a76464e8a 43e613a7756b c728d8f25e5a |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Mon Dec 20 11:24:47 2021 +0100 +++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Fri Dec 24 15:32:08 2021 +0100 @@ -1162,8 +1162,8 @@ bool rescale_; unsigned int depth_; unsigned int currentDepth_; + unsigned int width_; unsigned int height_; - unsigned int width_; PixelFormat format_; ChunkedBuffer buffer_; @@ -1172,11 +1172,14 @@ bool rescale) : rescale_(rescale), depth_(depth), - currentDepth_(0) + currentDepth_(0), + width_(0), // dummy initialization + height_(0), // dummy initialization + format_(PixelFormat_Grayscale8) // dummy initialization { } - void WriteFrame(ParsedDicomFile& dicom, + void WriteFrame(const ParsedDicomFile& dicom, unsigned int frame) { std::unique_ptr<ImageAccessor> decoded(dicom.DecodeFrame(frame));