diff MySQL/Plugins/MySQLStorageArea.cpp @ 157:275e14f57f1e

replacing deprecated std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 12:45:58 +0200
parents 063aa53b5917
children 3236894320d6
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLStorageArea.cpp	Mon Jul 06 12:40:44 2020 +0200
+++ b/MySQL/Plugins/MySQLStorageArea.cpp	Mon Jul 06 12:45:58 2020 +0200
@@ -25,6 +25,7 @@
 #include "../../Framework/MySQL/MySQLTransaction.h"
 #include "MySQLDefinitions.h"
 
+#include <Compatibility.h>  // For std::unique_ptr<>
 #include <Logging.h>
 
 #include <boost/math/special_functions/round.hpp>
@@ -34,7 +35,7 @@
 {
   IDatabase* MySQLStorageArea::OpenInternal()
   {
-    std::auto_ptr<MySQLDatabase> db(new MySQLDatabase(parameters_));
+    std::unique_ptr<MySQLDatabase> db(new MySQLDatabase(parameters_));
 
     db->Open();