Mercurial > hg > orthanc-databases
diff Framework/SQLite/SQLiteTransaction.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/Framework/SQLite/SQLiteTransaction.cpp Mon Jul 06 12:40:44 2020 +0200 +++ b/Framework/SQLite/SQLiteTransaction.cpp Mon Jul 06 12:45:58 2020 +0200 @@ -24,6 +24,7 @@ #include "SQLiteResult.h" #include "SQLiteStatement.h" +#include <Compatibility.h> // For std::unique_ptr<> #include <OrthancException.h> namespace OrthancDatabases @@ -43,7 +44,7 @@ IResult* SQLiteTransaction::Execute(IPrecompiledStatement& statement, const Dictionary& parameters) { - std::auto_ptr<IResult> result(dynamic_cast<SQLiteStatement&>(statement).Execute(*this, parameters)); + std::unique_ptr<IResult> result(dynamic_cast<SQLiteStatement&>(statement).Execute(*this, parameters)); if (!statement.IsReadOnly()) {