Avoid construcing a RippleAddress just to throw it away.

This commit is contained in:
JoelKatz
2013-05-13 18:28:54 -07:00
parent c9fd800ea4
commit bcf0fc0b3a
6 changed files with 12 additions and 10 deletions

View File

@@ -985,7 +985,7 @@ TER LedgerEntrySet::offerDelete(SLE::ref sleOffer, const uint256& uOfferIndex, c
TER LedgerEntrySet::offerDelete(const uint256& uOfferIndex)
{
SLE::pointer sleOffer = entryCache(ltOFFER, uOfferIndex);
const uint160 uOwnerID = sleOffer->getFieldAccount(sfAccount).getAccountID();
const uint160 uOwnerID = sleOffer->getFieldAccount160(sfAccount);
return offerDelete(sleOffer, uOfferIndex, uOwnerID);
}