Mercurial > hg > orthanc-transfers
comparison Framework/StatefulOrthancJob.cpp @ 25:dfc43678aecb
replacing deprecated std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 16:25:56 +0200 |
parents | b06103a50c95 |
children | 44a0430d7899 |
comparison
equal
deleted
inserted
replaced
24:065bc476bcdc | 25:dfc43678aecb |
---|---|
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 **/ | 17 **/ |
18 | 18 |
19 | 19 |
20 #include "StatefulOrthancJob.h" | 20 #include "StatefulOrthancJob.h" |
21 | |
22 #include <Compatibility.h> // For std::unique_ptr | |
21 | 23 |
22 namespace OrthancPlugins | 24 namespace OrthancPlugins |
23 { | 25 { |
24 StatefulOrthancJob::JobInfo::JobInfo(StatefulOrthancJob& job) : | 26 StatefulOrthancJob::JobInfo::JobInfo(StatefulOrthancJob& job) : |
25 job_(job), | 27 job_(job), |
78 } | 80 } |
79 | 81 |
80 | 82 |
81 OrthancPluginJobStepStatus StatefulOrthancJob::Step() | 83 OrthancPluginJobStepStatus StatefulOrthancJob::Step() |
82 { | 84 { |
83 std::auto_ptr<StateUpdate> update; | 85 std::unique_ptr<StateUpdate> update; |
84 | 86 |
85 if (state_.get() == NULL) | 87 if (state_.get() == NULL) |
86 { | 88 { |
87 update.reset(CreateInitialState(info_)); | 89 update.reset(CreateInitialState(info_)); |
88 } | 90 } |