comparison OrthancServer/ServerJobs/OrthancJobUnserializer.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 56f2397f027a
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
62 const std::string type = SerializationToolbox::ReadString(source, "Type"); 62 const std::string type = SerializationToolbox::ReadString(source, "Type");
63 63
64 #if ORTHANC_ENABLE_PLUGINS == 1 64 #if ORTHANC_ENABLE_PLUGINS == 1
65 if (context_.HasPlugins()) 65 if (context_.HasPlugins())
66 { 66 {
67 std::auto_ptr<IJob> job(context_.GetPlugins().UnserializeJob(type, source)); 67 std::unique_ptr<IJob> job(context_.GetPlugins().UnserializeJob(type, source));
68 if (job.get() != NULL) 68 if (job.get() != NULL)
69 { 69 {
70 return job.release(); 70 return job.release();
71 } 71 }
72 } 72 }