Skip to content

Commit 555ea4f

Browse files
practicalswiftfdoving
authored andcommitted
Use MakeUnique<Db>(...)
1 parent 3e6fb31 commit 555ea4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ CDB::CDB(CWalletDBWrapper& dbw, const char* pszMode, bool fFlushOnCloseIn) : pdb
414414
pdb = env->mapDb[strFilename];
415415
if (pdb == nullptr) {
416416
int ret;
417-
std::unique_ptr<Db> pdb_temp(new Db(env->dbenv, 0));
417+
std::unique_ptr<Db> pdb_temp = MakeUnique<Db>(env->dbenv.get(), 0);
418418

419419
bool fMockDb = env->IsMock();
420420
if (fMockDb) {

0 commit comments

Comments
 (0)