# HG changeset patch # User Sebastien Jodogne # Date 1689260247 -7200 # Node ID 5fe243cef6e9afc796afdf63da8df49c44b7676c # Parent 995dbab2e3dd5337d49265162f7c798d5a21a3c7 cppcheck diff -r 995dbab2e3dd -r 5fe243cef6e9 Framework/ImagedVolumeParameters.cpp --- 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) + { } diff -r 995dbab2e3dd -r 5fe243cef6e9 ViewerPlugin/DicomPyramidCache.h --- 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 {