Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/SplitStudyJob.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 | 94f4a18a79cc |
children | 023b2a9f3aa1 |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
69 { | 69 { |
70 /** | 70 /** |
71 * Retrieve the DICOM instance to be modified | 71 * Retrieve the DICOM instance to be modified |
72 **/ | 72 **/ |
73 | 73 |
74 std::auto_ptr<ParsedDicomFile> modified; | 74 std::unique_ptr<ParsedDicomFile> modified; |
75 | 75 |
76 try | 76 try |
77 { | 77 { |
78 ServerContext::DicomCacheLocker locker(context_, instance); | 78 ServerContext::DicomCacheLocker locker(context_, instance); |
79 modified.reset(locker.GetDicom().Clone(true)); | 79 modified.reset(locker.GetDicom().Clone(true)); |