Skip to content

Commit

Permalink
Use MakeUnique<Db>(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and fdoving committed Dec 19, 2021
1 parent a4e806f commit 5d30e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Db> pdb_temp(new Db(env->dbenv, 0));
std::unique_ptr<Db> pdb_temp = MakeUnique<Db>(env->dbenv.get(), 0);

bool fMockDb = env->IsMock();
if (fMockDb) {
Expand Down

0 comments on commit 5d30e6b

Please sign in to comment.