Mercurial > hg > orthanc-transfers
comparison Framework/PushMode/PushJob.cpp @ 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 | 17f775299b4a |
children | cfeda58d0c8e |
comparison
equal
deleted
inserted
replaced
24:065bc476bcdc | 25:dfc43678aecb |
---|---|
21 | 21 |
22 #include "BucketPushQuery.h" | 22 #include "BucketPushQuery.h" |
23 #include "../HttpQueries/HttpQueriesRunner.h" | 23 #include "../HttpQueries/HttpQueriesRunner.h" |
24 #include "../TransferScheduler.h" | 24 #include "../TransferScheduler.h" |
25 | 25 |
26 #include <Compatibility.h> // For std::unique_ptr | |
26 #include <Logging.h> | 27 #include <Logging.h> |
27 | 28 |
28 #include <json/writer.h> | 29 #include <json/writer.h> |
29 | 30 |
30 | 31 |
95 private: | 96 private: |
96 const PushJob& job_; | 97 const PushJob& job_; |
97 JobInfo& info_; | 98 JobInfo& info_; |
98 std::string transactionUri_; | 99 std::string transactionUri_; |
99 HttpQueriesQueue queue_; | 100 HttpQueriesQueue queue_; |
100 std::auto_ptr<HttpQueriesRunner> runner_; | 101 std::unique_ptr<HttpQueriesRunner> runner_; |
101 | 102 |
102 void UpdateInfo() | 103 void UpdateInfo() |
103 { | 104 { |
104 size_t scheduledQueriesCount, completedQueriesCount; | 105 size_t scheduledQueriesCount, completedQueriesCount; |
105 uint64_t uploadedSize, downloadedSize; | 106 uint64_t uploadedSize, downloadedSize; |