comparison Platforms/Generic/DelayedCallCommand.h @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 68579a31eeb4
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
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<MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_; 38 std::unique_ptr<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: