diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-11-20 12:49:26 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-05-01 05:59:09 -0500 |
commit | bd2fbc7cdbec46400341209f4cb7e69e5b2cee19 (patch) | |
tree | 79367858dc9bbc847f8304df49cdbe4dce317dfe /src | |
parent | 2b9cba206594bfbcefcef0c88a0bf793819643bd (diff) |
Get rid of unneeded CWalletTx::Init parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index b1ae975bd8..39f5e304ae 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -338,15 +338,15 @@ public: mutable bool fInMempool; mutable CAmount nChangeCached; - CWalletTx(const CWallet* pwalletIn, CTransactionRef arg) - : tx(std::move(arg)) + CWalletTx(const CWallet* wallet, CTransactionRef arg) + : pwallet(wallet), + tx(std::move(arg)) { - Init(pwalletIn); + Init(); } - void Init(const CWallet* pwalletIn) + void Init() { - pwallet = pwalletIn; mapValue.clear(); vOrderForm.clear(); fTimeReceivedIsTxTime = false; @@ -414,7 +414,7 @@ public: template<typename Stream> void Unserialize(Stream& s) { - Init(nullptr); + Init(); std::vector<uint256> dummy_vector1; //!< Used to be vMerkleBranch std::vector<CMerkleTx> dummy_vector2; //!< Used to be vtxPrev |