summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-02 03:04:20 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:35 -0400
commit230e03166f061387e7e25591bd2df6acad4195ee (patch)
tree34d80727f5efa12714f592e1010b51efbc9ba587 /src/journal.cc
parente70b80d6fe1ed6da6812eb3f4c77570a18eb2bf3 (diff)
downloadfork-ledger-230e03166f061387e7e25591bd2df6acad4195ee.tar.gz
fork-ledger-230e03166f061387e7e25591bd2df6acad4195ee.tar.bz2
fork-ledger-230e03166f061387e7e25591bd2df6acad4195ee.zip
In the middle of switching to using boost/operators.hpp
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 6d50f50e..948d9b6a 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -150,9 +150,9 @@ bool entry_base_t::finalize()
assert((*x)->amount);
commodity_t& this_comm = (*x)->amount->commodity();
- amounts_map::const_iterator this_bal =
+ balance_t::amounts_map::const_iterator this_bal =
((balance_t *) balance.data)->amounts.find(&this_comm);
- amounts_map::const_iterator other_bal =
+ balance_t::amounts_map::const_iterator other_bal =
((balance_t *) balance.data)->amounts.begin();
if (this_bal == other_bal)
other_bal++;
@@ -218,7 +218,8 @@ bool entry_base_t::finalize()
balance.cast(value_t::AMOUNT);
} else {
bool first = true;
- for (amounts_map::const_iterator i = bal->amounts.begin();
+ for (balance_t::amounts_map::const_iterator
+ i = bal->amounts.begin();
i != bal->amounts.end();
i++) {
amount_t amt = (*i).second.negate();