diff OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp @ 5158:02cfd23a556a

CppCheck
author Alain Mazy <am@osimis.io>
date Thu, 02 Feb 2023 10:33:15 +0100
parents 2df546a76e17
children 48005e522bd6
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp	Thu Feb 02 09:40:48 2023 +0100
+++ b/OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp	Thu Feb 02 10:33:15 2023 +0100
@@ -665,20 +665,14 @@
     }
 
     bool replacePatientMainDicomTags = false;
-    bool replaceStudyMainDicomTags = false;
-    bool replaceSeriesMainDicomTags = false;
-    bool replaceInstanceMainDicomTags = false;
 
     ResourceType modificationLevel = modification_->GetLevel();
     std::set<DicomTag> replacedTags;
     modification_->GetReplacedTags(replacedTags);
 
-    for (std::set<DicomTag>::const_iterator it = replacedTags.begin(); it != replacedTags.end(); it++)
+    for (std::set<DicomTag>::const_iterator it = replacedTags.begin(); it != replacedTags.end(); ++it)
     {
       replacePatientMainDicomTags |= DicomMap::IsMainDicomTag(*it, ResourceType_Patient);
-      replaceStudyMainDicomTags |= DicomMap::IsMainDicomTag(*it, ResourceType_Study);
-      replaceSeriesMainDicomTags |= DicomMap::IsMainDicomTag(*it, ResourceType_Series);
-      replaceInstanceMainDicomTags |= DicomMap::IsMainDicomTag(*it, ResourceType_Instance);
     }
 
     if ((modificationLevel == ResourceType_Study || modificationLevel == ResourceType_Patient)