diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2016-08-30 22:41:56 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2016-09-01 19:05:07 +0200 |
commit | cdd79eb70fe163a92531a6f11c72bce6d228dac6 (patch) | |
tree | 9f615eba78aece231ab3fc37e0252c971b70ac7c /src/wallet | |
parent | 2b23dbaee5b88d7237144e14eff01391e2cc201d (diff) |
C++11: s/boost::scoped_ptr/std::unique_ptr/
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/walletdb.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 9de0671ea2..239b1ac9b5 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -18,7 +18,6 @@ #include <boost/version.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> -#include <boost/scoped_ptr.hpp> #include <boost/thread.hpp> using namespace std; @@ -941,7 +940,7 @@ bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename, bool fOnlyKe } LogPrintf("Salvage(aggressive) found %u records\n", salvagedData.size()); - boost::scoped_ptr<Db> pdbCopy(new Db(dbenv.dbenv, 0)); + std::unique_ptr<Db> pdbCopy(new Db(dbenv.dbenv, 0)); int ret = pdbCopy->open(NULL, // Txn pointer filename.c_str(), // Filename "main", // Logical db name |