Merge pull request #6206

a9ac95c use const references where appropriate (Philip Kaufmann)
This commit is contained in:
Wladimir J. van der Laan
2015-06-05 07:00:57 +02:00
21 changed files with 61 additions and 63 deletions

View File

@@ -523,8 +523,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
UniValue transactions(UniValue::VARR);
map<uint256, int64_t> setTxIndex;
int i = 0;
BOOST_FOREACH (CTransaction& tx, pblock->vtx)
{
BOOST_FOREACH (const CTransaction& tx, pblock->vtx) {
uint256 txHash = tx.GetHash();
setTxIndex[txHash] = i++;