diff Framework/Loaders/DicomSource.cpp @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 0ca50d275b9a
children 30deba7bc8e2
line wrap: on
line diff
--- a/Framework/Loaders/DicomSource.cpp	Sun Feb 23 15:32:24 2020 +0100
+++ b/Framework/Loaders/DicomSource.cpp	Mon Mar 02 17:21:24 2020 +0100
@@ -144,13 +144,13 @@
                                                      const std::map<std::string, std::string>& headers,
                                                      Orthanc::IDynamicObject* payload) const
   {
-    std::auto_ptr<Orthanc::IDynamicObject> protection(payload);
+    std::unique_ptr<Orthanc::IDynamicObject> protection(payload);
 
     switch (type_)
     {
       case DicomSourceType_DicomWeb:
       {
-        std::auto_ptr<HttpCommand> command(new HttpCommand);
+        std::unique_ptr<HttpCommand> command(new HttpCommand);
         
         command->SetMethod(Orthanc::HttpMethod_Get);
         command->SetUrl(webService_.GetUrl() + "/" + EncodeGetArguments(uri, arguments));
@@ -196,7 +196,7 @@
         body["Arguments"] = args;
         body["Headers"] = h;
 
-        std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
+        std::unique_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
         command->SetMethod(Orthanc::HttpMethod_Post);
         command->SetUri(orthancDicomWebRoot_ + "/servers/" + serverName_ + "/get");
         command->SetBody(body);