diff Framework/PullMode/PullJob.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
line wrap: on
line diff
--- a/Framework/PullMode/PullJob.cpp	Mon Jul 06 16:23:48 2020 +0200
+++ b/Framework/PullMode/PullJob.cpp	Mon Jul 06 16:25:56 2020 +0200
@@ -23,6 +23,7 @@
 #include "../HttpQueries/HttpQueriesRunner.h"
 #include "../TransferScheduler.h"
 
+#include <Compatibility.h>  // For std::unique_ptr
 #include <Logging.h>
 
 #include <json/writer.h>
@@ -34,7 +35,7 @@
   {
   private:
     const PullJob&               job_;
-    std::auto_ptr<DownloadArea>  area_;
+    std::unique_ptr<DownloadArea>  area_;
 
   public:
     CommitState(const PullJob& job,
@@ -62,8 +63,8 @@
     const PullJob&                    job_;
     JobInfo&                          info_;
     HttpQueriesQueue                  queue_;
-    std::auto_ptr<DownloadArea>       area_;
-    std::auto_ptr<HttpQueriesRunner>  runner_;
+    std::unique_ptr<DownloadArea>       area_;
+    std::unique_ptr<HttpQueriesRunner>  runner_;
 
     void UpdateInfo()
     {