comparison Platforms/Generic/DelayedCallCommand.h @ 1298:8a0a62189f46

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 16:31:30 +0100
parents 1c7ae79c426d
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
33 namespace Deprecated 33 namespace Deprecated
34 { 34 {
35 class DelayedCallCommand : public IOracleCommand, OrthancStone::IObservable 35 class DelayedCallCommand : public IOracleCommand, OrthancStone::IObservable
36 { 36 {
37 protected: 37 protected:
38 std::auto_ptr<OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_; 38 std::unique_ptr<OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_;
39 std::auto_ptr<Orthanc::IDynamicObject> payload_; 39 std::unique_ptr<Orthanc::IDynamicObject> payload_;
40 OrthancStone::NativeStoneApplicationContext& context_; 40 OrthancStone::NativeStoneApplicationContext& context_;
41 boost::posix_time::ptime expirationTimePoint_; 41 boost::posix_time::ptime expirationTimePoint_;
42 unsigned int timeoutInMs_; 42 unsigned int timeoutInMs_;
43 43
44 public: 44 public: