Mercurial > hg > orthanc-stone
comparison Framework/Oracle/OracleCommandWithPayload.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 | 2d8ab34c8c91 |
children |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "IOracleCommand.h" | 24 #include "IOracleCommand.h" |
25 | 25 |
26 #include <Core/Compatibility.h> | |
26 #include <Core/IDynamicObject.h> | 27 #include <Core/IDynamicObject.h> |
27 | 28 |
28 #include <memory> | 29 #include <memory> |
29 | 30 |
30 namespace OrthancStone | 31 namespace OrthancStone |
31 { | 32 { |
32 class OracleCommandWithPayload : public IOracleCommand | 33 class OracleCommandWithPayload : public IOracleCommand |
33 { | 34 { |
34 private: | 35 private: |
35 std::auto_ptr<Orthanc::IDynamicObject> payload_; | 36 std::unique_ptr<Orthanc::IDynamicObject> payload_; |
36 | 37 |
37 public: | 38 public: |
38 void SetPayload(Orthanc::IDynamicObject* payload); | 39 void SetPayload(Orthanc::IDynamicObject* payload); |
39 | 40 |
40 bool HasPayload() const | 41 bool HasPayload() const |