diff OrthancServer/OrthancFindRequestHandler.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 4922bdd046dd
children 884b55ce01f6
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Fri Feb 28 13:23:11 2020 +0100
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Mon Mar 02 15:32:45 2020 +0100
@@ -273,7 +273,7 @@
       throw OrthancException(ErrorCode_UnknownResource);  // The resource was deleted in between
     }
 
-    std::auto_ptr<DicomMap> result(new DicomMap);
+    std::unique_ptr<DicomMap> result(new DicomMap);
 
     switch (level)
     {
@@ -537,7 +537,7 @@
                        const DicomMap& mainDicomTags,
                        const Json::Value* dicomAsJson) 
     {
-      std::auto_ptr<DicomMap> counters(ComputeCounters(context_, instanceId, level_, query_));
+      std::unique_ptr<DicomMap> counters(ComputeCounters(context_, instanceId, level_, query_));
 
       AddAnswer(answers_, mainDicomTags, dicomAsJson,
                 queryAsArray_, sequencesToReturn_, counters.get());