diff Framework/Deprecated/Loaders/DicomStructureSetLoader2.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 7ec8fea061b9
children 257f2c9a02ac
line wrap: on
line diff
--- a/Framework/Deprecated/Loaders/DicomStructureSetLoader2.cpp	Sun Feb 23 15:32:24 2020 +0100
+++ b/Framework/Deprecated/Loaders/DicomStructureSetLoader2.cpp	Mon Mar 02 17:21:24 2020 +0100
@@ -81,7 +81,7 @@
 
   void DicomStructureSetLoader2::LoadInstance(const std::string& instanceId)
   {
-    std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
+    std::unique_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
     command->SetHttpHeader("Accept-Encoding", "gzip");
 
     std::string uri = "/instances/" + instanceId + "/tags?ignore-length=3006-0050";