[trivial] Add missing const qualifiers.

Add some const qualifiers to references that are not modified and should
be marked as const.
This commit is contained in:
Daniel Kraft
2016-04-30 19:25:00 +02:00
committed by lateminer
parent 05c3d2e290
commit ad0ec643b7
3 changed files with 4 additions and 4 deletions

View File

@@ -912,7 +912,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