From 5d30e6b85fe06f6ef17f9ca7552eeee0bae95d6a Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 18 Oct 2017 23:21:06 +0200 Subject: [PATCH] Use MakeUnique(...) --- src/wallet/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 9898b12151..e8d9b1b45d 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -414,7 +414,7 @@ CDB::CDB(CWalletDBWrapper& dbw, const char* pszMode, bool fFlushOnCloseIn) : pdb pdb = env->mapDb[strFilename]; if (pdb == nullptr) { int ret; - std::unique_ptr pdb_temp(new Db(env->dbenv, 0)); + std::unique_ptr pdb_temp = MakeUnique(env->dbenv.get(), 0); bool fMockDb = env->IsMock(); if (fMockDb) {