diff OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp @ 4200:7112a8af0b63

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Sep 2020 20:53:31 +0200
parents dbd74fa2f446
children 2d5209153b32
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp	Wed Sep 16 20:28:20 2020 +0200
+++ b/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp	Wed Sep 16 20:53:31 2020 +0200
@@ -346,7 +346,7 @@
 
 
   template <typename PixelType>
-  static void CopyPixels(ImageAccessor& target,
+  static void CopyPixels(const ImageAccessor& target,
                          const DicomIntegerPixelAccessor& source)
   {
     // WARNING - "::min()" should be replaced by "::lowest()" if
@@ -652,7 +652,7 @@
   }
 
 
-  ImageAccessor* DicomImageDecoder::Decode(ParsedDicomFile& dicom,
+  ImageAccessor* DicomImageDecoder::Decode(const ParsedDicomFile& dicom,
                                            unsigned int frame)
   {
     if (dicom.GetDcmtkObject().getDataset() == NULL)