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

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Sep 2020 20:53:31 +0200
parents bf7b9edf6b81
children 785a2713323e
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/DcmtkTranscoder.cpp	Wed Sep 16 20:28:20 2020 +0200
+++ b/OrthancFramework/Sources/DicomParsing/DcmtkTranscoder.cpp	Wed Sep 16 20:53:31 2020 +0200
@@ -53,7 +53,7 @@
   
   void DcmtkTranscoder::SetLossyQuality(unsigned int quality)
   {
-    if (quality <= 0 ||
+    if (quality == 0 ||
         quality > 100)
     {
       throw OrthancException(
@@ -89,8 +89,6 @@
     uint16_t bitsStored;
     bool hasBitsStored = GetBitsStored(bitsStored, *dicom.getDataset());
     
-    std::string sourceSopInstanceUid = IDicomTranscoder::GetSopInstanceUid(dicom);
-    
     if (allowedSyntaxes.find(syntax) != allowedSyntaxes.end())
     {
       // No transcoding is needed