mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-10 15:18:09 +00:00
Use MakeUnique<Db>(...)
This commit is contained in:
parent
3e09b390b4
commit
a357293c87
@ -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<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) {
|
||||
|
Loading…
Reference in New Issue
Block a user