refactor: Drop CWalletRef typedef

This commit is contained in:
João Barbosa 2018-04-17 17:41:49 +01:00
parent 615f7c2884
commit 6efd9644cf
6 changed files with 12 additions and 13 deletions

View file

@ -323,28 +323,28 @@ bool WalletInit::Open() const
void WalletInit::Start(CScheduler& scheduler) const
{
for (CWalletRef pwallet : vpwallets) {
for (CWallet* pwallet : vpwallets) {
pwallet->postInitProcess(scheduler);
}
}
void WalletInit::Flush() const
{
for (CWalletRef pwallet : vpwallets) {
for (CWallet* pwallet : vpwallets) {
pwallet->Flush(false);
}
}
void WalletInit::Stop() const
{
for (CWalletRef pwallet : vpwallets) {
for (CWallet* pwallet : vpwallets) {
pwallet->Flush(true);
}
}
void WalletInit::Close() const
{
for (CWalletRef pwallet : vpwallets) {
for (CWallet* pwallet : vpwallets) {
delete pwallet;
}
vpwallets.clear();