Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Toolbox/SubpixelReader.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/SubpixelReader.h Mon Sep 21 14:50:26 2020 +0200 +++ b/OrthancStone/Sources/Toolbox/SubpixelReader.h Mon Sep 21 17:46:39 2020 +0200 @@ -41,7 +41,7 @@ unsigned int height_; public: - SubpixelReaderBase(const Orthanc::ImageAccessor& source) : + explicit SubpixelReaderBase(const Orthanc::ImageAccessor& source) : source_(source), width_(source.GetWidth()), height_(source.GetHeight()) @@ -82,7 +82,7 @@ typedef Orthanc::PixelTraits<Format> Traits; typedef typename Traits::PixelType PixelType; - SubpixelReader(const Orthanc::ImageAccessor& source) : + explicit SubpixelReader(const Orthanc::ImageAccessor& source) : SubpixelReaderBase(source) { } @@ -106,7 +106,7 @@ typedef Orthanc::PixelTraits<Format> Traits; typedef typename Traits::PixelType PixelType; - SubpixelReader(const Orthanc::ImageAccessor& source) : + explicit SubpixelReader(const Orthanc::ImageAccessor& source) : SubpixelReaderBase(source) { }