diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 00:14:17 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 00:22:40 +0000 |
commit | 12dcdaaa54b9a4c55384e6b04379da8125fa6e7d (patch) | |
tree | bf2c64baa3c7642c7b5a716ba788936b22e6f447 /src/wallet/interfaces.cpp | |
parent | f35e4d906fee907f28ac5d8f32d4948e6b7b14c3 (diff) | |
download | bitcoin-12dcdaaa54b9a4c55384e6b04379da8125fa6e7d.tar.xz |
Don't make "in" parameters look like "out"/"in-out" parameters: pass by ref to const instead of ref to non-const
Diffstat (limited to 'src/wallet/interfaces.cpp')
-rw-r--r-- | src/wallet/interfaces.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp index 3fbba9ab92..e8dbc20e56 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -77,7 +77,7 @@ WalletTx MakeWalletTx(CWallet& wallet, const CWalletTx& wtx) } //! Construct wallet tx status struct. -WalletTxStatus MakeWalletTxStatus(CWallet& wallet, const CWalletTx& wtx) +WalletTxStatus MakeWalletTxStatus(const CWallet& wallet, const CWalletTx& wtx) { WalletTxStatus result; result.block_height = wtx.m_confirm.block_height > 0 ? wtx.m_confirm.block_height : std::numeric_limits<int>::max(); @@ -94,7 +94,7 @@ WalletTxStatus MakeWalletTxStatus(CWallet& wallet, const CWalletTx& wtx) } //! Construct wallet TxOut struct. -WalletTxOut MakeWalletTxOut(CWallet& wallet, +WalletTxOut MakeWalletTxOut(const CWallet& wallet, const CWalletTx& wtx, int n, int depth) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet) |