Mercurial > hg > orthanc-wsi
changeset 291:5fe243cef6e9
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jul 2023 16:57:27 +0200 |
parents | 995dbab2e3dd |
children | 053af6d76f2a |
files | Framework/ImagedVolumeParameters.cpp ViewerPlugin/DicomPyramidCache.h |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/ImagedVolumeParameters.cpp Thu Jul 13 16:41:09 2023 +0200 +++ b/Framework/ImagedVolumeParameters.cpp Thu Jul 13 16:57:27 2023 +0200 @@ -29,12 +29,15 @@ { ImagedVolumeParameters::ImagedVolumeParameters() : hasWidth_(false), - hasHeight_(false) - { + hasHeight_(false), + width_(0), + height_(0), + // Typical parameters for a specimen, in millimeters - depth_ = 1; - offsetX_ = 20; - offsetY_ = 40; + depth_(1), + offsetX_(20), + offsetY_(40) + { }
--- a/ViewerPlugin/DicomPyramidCache.h Thu Jul 13 16:41:09 2023 +0200 +++ b/ViewerPlugin/DicomPyramidCache.h Thu Jul 13 16:57:27 2023 +0200 @@ -70,7 +70,7 @@ DicomPyramid& pyramid_; public: - Locker(const std::string& seriesId); + explicit Locker(const std::string& seriesId); DicomPyramid& GetPyramid() const {