Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Toolbox/OrthancApiClient.cpp @ 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 | 257f2c9a02ac |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
66 | 66 |
67 | 67 |
68 class OrthancApiClient::WebServicePayload : public Orthanc::IDynamicObject | 68 class OrthancApiClient::WebServicePayload : public Orthanc::IDynamicObject |
69 { | 69 { |
70 private: | 70 private: |
71 std::auto_ptr< OrthancStone::MessageHandler<EmptyResponseReadyMessage> > emptyHandler_; | 71 std::unique_ptr< OrthancStone::MessageHandler<EmptyResponseReadyMessage> > emptyHandler_; |
72 std::auto_ptr< OrthancStone::MessageHandler<JsonResponseReadyMessage> > jsonHandler_; | 72 std::unique_ptr< OrthancStone::MessageHandler<JsonResponseReadyMessage> > jsonHandler_; |
73 std::auto_ptr< OrthancStone::MessageHandler<BinaryResponseReadyMessage> > binaryHandler_; | 73 std::unique_ptr< OrthancStone::MessageHandler<BinaryResponseReadyMessage> > binaryHandler_; |
74 std::auto_ptr< OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage> > failureHandler_; | 74 std::unique_ptr< OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage> > failureHandler_; |
75 std::auto_ptr< Orthanc::IDynamicObject > userPayload_; | 75 std::unique_ptr< Orthanc::IDynamicObject > userPayload_; |
76 OrthancStone::MessageBroker& broker_; | 76 OrthancStone::MessageBroker& broker_; |
77 void NotifyConversionError(const IWebService::HttpRequestSuccessMessage& message) const | 77 void NotifyConversionError(const IWebService::HttpRequestSuccessMessage& message) const |
78 { | 78 { |
79 if (failureHandler_.get() != NULL) | 79 if (failureHandler_.get() != NULL) |
80 { | 80 { |