diff Framework/SQLite/SQLiteStatement.h @ 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 6fe74f9a516e
line wrap: on
line diff
--- a/Framework/SQLite/SQLiteStatement.h	Mon Jul 06 12:40:44 2020 +0200
+++ b/Framework/SQLite/SQLiteStatement.h	Mon Jul 06 12:45:58 2020 +0200
@@ -29,6 +29,7 @@
 #include "SQLiteTransaction.h"
 #include "../Common/GenericFormatter.h"
 
+#include <Compatibility.h>  // For std::unique_ptr<>
 #include <SQLite/Statement.h>
 
 #include <memory>
@@ -38,7 +39,7 @@
   class SQLiteStatement : public IPrecompiledStatement
   {
   private:
-    std::auto_ptr<Orthanc::SQLite::Statement>  statement_;
+    std::unique_ptr<Orthanc::SQLite::Statement>  statement_;
     bool                                       readOnly_;
     GenericFormatter                           formatter_;