comparison OrthancServer/ServerIndex.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 643b5ee86f92
children aaaa442bfe39
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
239 239
240 class ServerIndex::Transaction 240 class ServerIndex::Transaction
241 { 241 {
242 private: 242 private:
243 ServerIndex& index_; 243 ServerIndex& index_;
244 std::auto_ptr<IDatabaseWrapper::ITransaction> transaction_; 244 std::unique_ptr<IDatabaseWrapper::ITransaction> transaction_;
245 bool isCommitted_; 245 bool isCommitted_;
246 246
247 public: 247 public:
248 Transaction(ServerIndex& index) : 248 Transaction(ServerIndex& index) :
249 index_(index), 249 index_(index),