replace boost iterators in dash-specific code (#2048)

This commit is contained in:
Nathan Marley 2018-04-23 03:25:04 -07:00 committed by UdjinM6
parent 2583e1963c
commit 8e24b087b4
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ bool CInstantSend::CreateTxLockCandidate(const CTxLockRequest& txLockRequest)
CTxLockCandidate txLockCandidate(txLockRequest);
// all inputs should already be checked by txLockRequest.IsValid() above, just use them now
BOOST_REVERSE_FOREACH(const CTxIn& txin, txLockRequest.tx->vin) {
for(const auto& txin : txLockRequest.tx->vin) {
txLockCandidate.AddOutPointLock(txin.prevout);
}
mapTxLockCandidates.insert(std::make_pair(txHash, txLockCandidate));
@ -167,7 +167,7 @@ bool CInstantSend::CreateTxLockCandidate(const CTxLockRequest& txLockRequest)
LogPrintf("CInstantSend::CreateTxLockCandidate -- update empty, txid=%s\n", txHash.ToString());
// all inputs should already be checked by txLockRequest.IsValid() above, just use them now
BOOST_REVERSE_FOREACH(const CTxIn& txin, txLockRequest.tx->vin) {
for(const auto& txin : txLockRequest.tx->vin) {
itLockCandidate->second.AddOutPointLock(txin.prevout);
}
} else {

View File

@ -469,7 +469,7 @@ void MasternodeList::ShowQRCode(std::string strAlias) {
CMasternode mn;
bool fFound = false;
BOOST_FOREACH(CMasternodeConfig::CMasternodeEntry mne, masternodeConfig.getEntries()) {
for (const auto& mne : masternodeConfig.getEntries()) {
if (strAlias != mne.getAlias()) {
continue;
}