diff options
| author | Daniel Kraft <[email protected]> | 2016-04-30 19:25:00 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2016-04-30 19:25:00 +0200 |
| commit | f7c4f79f07c777801db7dc047cd45eaf2bba81c9 (patch) | |
| tree | 15886406c7762bd4556f92df63e44354df37c71e /src/txmempool.cpp | |
| parent | Merge #7807: Fixed miner test values, gave constants for less error-prone val... (diff) | |
| download | discoin-f7c4f79f07c777801db7dc047cd45eaf2bba81c9.tar.xz discoin-f7c4f79f07c777801db7dc047cd45eaf2bba81c9.zip | |
[trivial] Add missing const qualifiers.
Add some const qualifiers to references that are not modified and should
be marked as const.
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 52c779311..420f6896b 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -885,7 +885,7 @@ bool CTxMemPool::HasNoInputsOf(const CTransaction &tx) const return true; } -CCoinsViewMemPool::CCoinsViewMemPool(CCoinsView *baseIn, CTxMemPool &mempoolIn) : CCoinsViewBacked(baseIn), mempool(mempoolIn) { } +CCoinsViewMemPool::CCoinsViewMemPool(CCoinsView* baseIn, const CTxMemPool& mempoolIn) : CCoinsViewBacked(baseIn), mempool(mempoolIn) { } bool CCoinsViewMemPool::GetCoins(const uint256 &txid, CCoins &coins) const { // If an entry in the mempool exists, always return that one, as it's guaranteed to never |