Mercurial > hg > orthanc-databases
comparison Framework/Common/ImplicitTransaction.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 |
comparison
equal
deleted
inserted
replaced
156:710537acb488 | 157:275e14f57f1e |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #include "ImplicitTransaction.h" | 22 #include "ImplicitTransaction.h" |
23 | 23 |
24 #include <Compatibility.h> // For std::unique_ptr<> | |
24 #include <Logging.h> | 25 #include <Logging.h> |
25 #include <OrthancException.h> | 26 #include <OrthancException.h> |
26 | 27 |
27 #include <memory> | 28 #include <memory> |
28 | 29 |
122 | 123 |
123 IResult* ImplicitTransaction::Execute(IPrecompiledStatement& statement, | 124 IResult* ImplicitTransaction::Execute(IPrecompiledStatement& statement, |
124 const Dictionary& parameters) | 125 const Dictionary& parameters) |
125 { | 126 { |
126 CheckStateForExecution(); | 127 CheckStateForExecution(); |
127 std::auto_ptr<IResult> result(ExecuteInternal(statement, parameters)); | 128 std::unique_ptr<IResult> result(ExecuteInternal(statement, parameters)); |
128 | 129 |
129 if (!statement.IsReadOnly()) | 130 if (!statement.IsReadOnly()) |
130 { | 131 { |
131 readOnly_ = false; | 132 readOnly_ = false; |
132 } | 133 } |