Fix local variable unfundedOffers that was shadowing a class variable.

This commit is contained in:
Tom Ritchford
2014-08-06 12:13:03 -04:00
committed by Vinnie Falco
parent 54f3a83e25
commit 88a6f2931e
3 changed files with 7 additions and 7 deletions

View File

@@ -360,7 +360,7 @@ TER RippleCalc::rippleCalculate ()
}
// Delete found unfunded offers.
for (auto const& offerIndex: unfundedOffers)
for (auto const& offerIndex: unfundedOffers_)
{
if (resultCode == tesSUCCESS)
{

View File

@@ -85,7 +85,7 @@ struct RippleCalc
// unfunded offers.
//
// Offers that were found unfunded.
hash_set<uint256> unfundedOffers;
hash_set<uint256> unfundedOffers_;
// The computed input amount.
STAmount actualAmountIn_;

View File

@@ -212,7 +212,7 @@ TER PathCursor::advanceNode (bool const bReverse) const
// Offer is expired.
WriteLog (lsTRACE, RippleCalc)
<< "advanceNode: expired offer";
rippleCalc_.unfundedOffers.insert(node().offerIndex_);
rippleCalc_.unfundedOffers_.insert(node().offerIndex_);
continue;
}
@@ -232,10 +232,10 @@ TER PathCursor::advanceNode (bool const bReverse) const
<< " node.saTakerGets=%s" << node().saTakerGets;
// Mark offer for always deletion.
rippleCalc_.unfundedOffers.insert (node().offerIndex_);
rippleCalc_.unfundedOffers_.insert (node().offerIndex_);
}
else if (rippleCalc_.unfundedOffers.find (node().offerIndex_)
!= rippleCalc_.unfundedOffers.end ())
else if (rippleCalc_.unfundedOffers_.find (node().offerIndex_)
!= rippleCalc_.unfundedOffers_.end ())
{
// Past internal error, offer was found failed to place
// this in unfundedOffers.
@@ -339,7 +339,7 @@ TER PathCursor::advanceNode (bool const bReverse) const
// That is, even if this offer fails due to fill or kill
// still do deletions.
// Mark offer for always deletion.
rippleCalc_.unfundedOffers.insert (node().offerIndex_);
rippleCalc_.unfundedOffers_.insert (node().offerIndex_);
}
else
{