diff Core/MultiThreading/SharedMessageQueue.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 94f4a18a79cc
children
line wrap: on
line diff
--- a/Core/MultiThreading/SharedMessageQueue.cpp	Fri Feb 28 13:23:11 2020 +0100
+++ b/Core/MultiThreading/SharedMessageQueue.cpp	Mon Mar 02 15:32:45 2020 +0100
@@ -35,6 +35,8 @@
 #include "SharedMessageQueue.h"
 
 
+#include "../Compatibility.h"
+
 
 /**
  * FIFO (queue):
@@ -137,7 +139,7 @@
       }
     }
 
-    std::auto_ptr<IDynamicObject> message(queue_.front());
+    std::unique_ptr<IDynamicObject> message(queue_.front());
     queue_.pop_front();
 
     if (queue_.empty())
@@ -199,7 +201,7 @@
     {
       while (!queue_.empty())
       {
-        std::auto_ptr<IDynamicObject> message(queue_.front());
+        std::unique_ptr<IDynamicObject> message(queue_.front());
         queue_.pop_front();
       }