Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/OrthancJobUnserializer.cpp @ 3713:56f2397f027a storage-commitment
integration mainline->storage-commitment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:42:17 +0100 |
parents | f6a73611ec5c 2a170a8f1faf |
children | 6498739a3c3c |
comparison
equal
deleted
inserted
replaced
3711:14b363d972a8 | 3713:56f2397f027a |
---|---|
63 const std::string type = SerializationToolbox::ReadString(source, "Type"); | 63 const std::string type = SerializationToolbox::ReadString(source, "Type"); |
64 | 64 |
65 #if ORTHANC_ENABLE_PLUGINS == 1 | 65 #if ORTHANC_ENABLE_PLUGINS == 1 |
66 if (context_.HasPlugins()) | 66 if (context_.HasPlugins()) |
67 { | 67 { |
68 std::auto_ptr<IJob> job(context_.GetPlugins().UnserializeJob(type, source)); | 68 std::unique_ptr<IJob> job(context_.GetPlugins().UnserializeJob(type, source)); |
69 if (job.get() != NULL) | 69 if (job.get() != NULL) |
70 { | 70 { |
71 return job.release(); | 71 return job.release(); |
72 } | 72 } |
73 } | 73 } |