Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/DicomParsing/DicomModification.cpp Fri Feb 28 13:23:11 2020 +0100 +++ b/Core/DicomParsing/DicomModification.cpp Mon Mar 02 15:32:45 2020 +0100 @@ -34,13 +34,14 @@ #include "../PrecompiledHeaders.h" #include "DicomModification.h" +#include "../Compatibility.h" #include "../Logging.h" #include "../OrthancException.h" #include "../SerializationToolbox.h" #include "FromDcmtkBridge.h" #include "ITagVisitor.h" -#include <memory> // For std::auto_ptr +#include <memory> // For std::unique_ptr static const std::string ORTHANC_DEIDENTIFICATION_METHOD_2008 = @@ -317,7 +318,7 @@ void DicomModification::MapDicomTags(ParsedDicomFile& dicom, ResourceType level) { - std::auto_ptr<DicomTag> tag; + std::unique_ptr<DicomTag> tag; switch (level) {