comparison Core/DicomParsing/DicomModification.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 1f4910999fe7
children 9ccbbd55bc23
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
32 32
33 33
34 #include "../PrecompiledHeaders.h" 34 #include "../PrecompiledHeaders.h"
35 #include "DicomModification.h" 35 #include "DicomModification.h"
36 36
37 #include "../Compatibility.h"
37 #include "../Logging.h" 38 #include "../Logging.h"
38 #include "../OrthancException.h" 39 #include "../OrthancException.h"
39 #include "../SerializationToolbox.h" 40 #include "../SerializationToolbox.h"
40 #include "FromDcmtkBridge.h" 41 #include "FromDcmtkBridge.h"
41 #include "ITagVisitor.h" 42 #include "ITagVisitor.h"
42 43
43 #include <memory> // For std::auto_ptr 44 #include <memory> // For std::unique_ptr
44 45
45 46
46 static const std::string ORTHANC_DEIDENTIFICATION_METHOD_2008 = 47 static const std::string ORTHANC_DEIDENTIFICATION_METHOD_2008 =
47 "Orthanc " ORTHANC_VERSION " - PS 3.15-2008 Table E.1-1"; 48 "Orthanc " ORTHANC_VERSION " - PS 3.15-2008 Table E.1-1";
48 49
315 316
316 317
317 void DicomModification::MapDicomTags(ParsedDicomFile& dicom, 318 void DicomModification::MapDicomTags(ParsedDicomFile& dicom,
318 ResourceType level) 319 ResourceType level)
319 { 320 {
320 std::auto_ptr<DicomTag> tag; 321 std::unique_ptr<DicomTag> tag;
321 322
322 switch (level) 323 switch (level)
323 { 324 {
324 case ResourceType_Study: 325 case ResourceType_Study:
325 tag.reset(new DicomTag(DICOM_TAG_STUDY_INSTANCE_UID)); 326 tag.reset(new DicomTag(DICOM_TAG_STUDY_INSTANCE_UID));