Mercurial > hg > orthanc-transfers
diff Framework/StatefulOrthancJob.h @ 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 | ebf978ab064d |
children | 44a0430d7899 |
line wrap: on
line diff
--- a/Framework/StatefulOrthancJob.h Mon Jul 06 16:23:48 2020 +0200 +++ b/Framework/StatefulOrthancJob.h Mon Jul 06 16:25:56 2020 +0200 @@ -21,6 +21,8 @@ #include "../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" +#include <Compatibility.h> // For std::unique_ptr + #include <memory> @@ -59,7 +61,7 @@ { private: OrthancPluginJobStepStatus status_; - std::auto_ptr<IState> state_; + std::unique_ptr<IState> state_; explicit StateUpdate(OrthancPluginJobStepStatus status) : status_(status) @@ -120,7 +122,7 @@ private: - std::auto_ptr<IState> state_; + std::unique_ptr<IState> state_; JobInfo info_;