aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-08-09 16:24:12 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-11-09 16:53:34 +0100
commit29ab96dbd2bc76152de6eff09755b1b66b29474d (patch)
tree7a8235235dd2f131f08783b8f227bae935bae7d1 /src/wallet/db.h
parentf72cbf9ba970e997be84fb7b20795c6b9c62fb42 (diff)
Use unique_ptr for dbenv (DbEnv)
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index 14283ac8f8..e6d5a9f293 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -36,7 +36,7 @@ private:
public:
mutable CCriticalSection cs_db;
- DbEnv *dbenv;
+ std::unique_ptr<DbEnv> dbenv;
std::map<std::string, int> mapFileUseCount;
std::map<std::string, Db*> mapDb;