comparison OrthancServer/Database/SQLiteDatabaseWrapper.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 94f4a18a79cc
children 2bf30ef727e3
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
581 581
582 582
583 class SQLiteDatabaseWrapper::Transaction : public IDatabaseWrapper::ITransaction 583 class SQLiteDatabaseWrapper::Transaction : public IDatabaseWrapper::ITransaction
584 { 584 {
585 private: 585 private:
586 SQLiteDatabaseWrapper& that_; 586 SQLiteDatabaseWrapper& that_;
587 std::auto_ptr<SQLite::Transaction> transaction_; 587 std::unique_ptr<SQLite::Transaction> transaction_;
588 int64_t initialDiskSize_; 588 int64_t initialDiskSize_;
589 589
590 public: 590 public:
591 Transaction(SQLiteDatabaseWrapper& that) : 591 Transaction(SQLiteDatabaseWrapper& that) :
592 that_(that), 592 that_(that),
593 transaction_(new SQLite::Transaction(that_.db_)) 593 transaction_(new SQLite::Transaction(that_.db_))
1179 ResourceType level) 1179 ResourceType level)
1180 { 1180 {
1181 resourcesId.clear(); 1181 resourcesId.clear();
1182 instancesId.clear(); 1182 instancesId.clear();
1183 1183
1184 std::auto_ptr<SQLite::Statement> statement; 1184 std::unique_ptr<SQLite::Statement> statement;
1185 1185
1186 switch (level) 1186 switch (level)
1187 { 1187 {
1188 case ResourceType_Patient: 1188 case ResourceType_Patient:
1189 { 1189 {