Mercurial > hg > orthanc-transfers
diff 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 |
line wrap: on
line diff
--- a/Framework/StatefulOrthancJob.cpp Mon Jul 06 16:23:48 2020 +0200 +++ b/Framework/StatefulOrthancJob.cpp Mon Jul 06 16:25:56 2020 +0200 @@ -19,6 +19,8 @@ #include "StatefulOrthancJob.h" +#include <Compatibility.h> // For std::unique_ptr + namespace OrthancPlugins { StatefulOrthancJob::JobInfo::JobInfo(StatefulOrthancJob& job) : @@ -80,7 +82,7 @@ OrthancPluginJobStepStatus StatefulOrthancJob::Step() { - std::auto_ptr<StateUpdate> update; + std::unique_ptr<StateUpdate> update; if (state_.get() == NULL) {