diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-17 03:51:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-17 03:51:28 -0400 |
commit | 1c079630cf21c2e257e272897a987c0968571865 (patch) | |
tree | 947b04364e9fb38ab63bbdda72d7f85a52da55e7 /src/balance.cc | |
parent | 8da86ae078c58390f581ae336a3801fcf8b89d77 (diff) | |
download | fork-ledger-1c079630cf21c2e257e272897a987c0968571865.tar.gz fork-ledger-1c079630cf21c2e257e272897a987c0968571865.tar.bz2 fork-ledger-1c079630cf21c2e257e272897a987c0968571865.zip |
Removed more "pending" type comments.
Diffstat (limited to 'src/balance.cc')
-rw-r--r-- | src/balance.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/balance.cc b/src/balance.cc index bac8d40c..085d32b1 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -175,11 +175,9 @@ balance_t::value(const optional<datetime_t>& moment) const optional<amount_t> balance_t::commodity_amount(const optional<const commodity_t&>& commodity) const { - // jww (2007-05-20): Needs work if (! commodity) { if (amounts.size() == 1) { - amounts_map::const_iterator i = amounts.begin(); - return i->second; + return amounts.begin()->second; } else if (amounts.size() > 1) { // Try stripping annotations before giving an error. |