From a357293c871d7eb9ccaf9fff61736248319f7a63 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 0ae5f2b15..ca8e680ff 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -413,7 +413,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) { -- 2.11.4.GIT