Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/ResourceModificationJob.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 |
---|---|
145 | 145 |
146 /** | 146 /** |
147 * Retrieve the original instance from the DICOM cache. | 147 * Retrieve the original instance from the DICOM cache. |
148 **/ | 148 **/ |
149 | 149 |
150 std::auto_ptr<DicomInstanceHasher> originalHasher; | 150 std::unique_ptr<DicomInstanceHasher> originalHasher; |
151 std::auto_ptr<ParsedDicomFile> modified; | 151 std::unique_ptr<ParsedDicomFile> modified; |
152 | 152 |
153 try | 153 try |
154 { | 154 { |
155 ServerContext::DicomCacheLocker locker(context_, instance); | 155 ServerContext::DicomCacheLocker locker(context_, instance); |
156 ParsedDicomFile& original = locker.GetDicom(); | 156 ParsedDicomFile& original = locker.GetDicom(); |