mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 17:24:58 +02:00
Use MakeUnique<T>(...) instead of std::unique_ptr<T>(new T(...))
This commit is contained in:
@@ -17,7 +17,7 @@ WalletTestingSetup::WalletTestingSetup(const std::string& chainName):
|
||||
|
||||
bool fFirstRun;
|
||||
std::unique_ptr<CWalletDBWrapper> dbw(new CWalletDBWrapper(&bitdb, "wallet_test.dat"));
|
||||
pwalletMain = std::unique_ptr<CWallet>(new CWallet(std::move(dbw)));
|
||||
pwalletMain = MakeUnique<CWallet>(std::move(dbw));
|
||||
pwalletMain->LoadWallet(fFirstRun);
|
||||
RegisterValidationInterface(pwalletMain.get());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user