comparison 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
comparison
equal deleted inserted replaced
156:710537acb488 157:275e14f57f1e
27 27
28 #include "SQLiteDatabase.h" 28 #include "SQLiteDatabase.h"
29 #include "SQLiteTransaction.h" 29 #include "SQLiteTransaction.h"
30 #include "../Common/GenericFormatter.h" 30 #include "../Common/GenericFormatter.h"
31 31
32 #include <Compatibility.h> // For std::unique_ptr<>
32 #include <SQLite/Statement.h> 33 #include <SQLite/Statement.h>
33 34
34 #include <memory> 35 #include <memory>
35 36
36 namespace OrthancDatabases 37 namespace OrthancDatabases
37 { 38 {
38 class SQLiteStatement : public IPrecompiledStatement 39 class SQLiteStatement : public IPrecompiledStatement
39 { 40 {
40 private: 41 private:
41 std::auto_ptr<Orthanc::SQLite::Statement> statement_; 42 std::unique_ptr<Orthanc::SQLite::Statement> statement_;
42 bool readOnly_; 43 bool readOnly_;
43 GenericFormatter formatter_; 44 GenericFormatter formatter_;
44 45
45 void BindParameters(const Dictionary& parameters); 46 void BindParameters(const Dictionary& parameters);
46 47