summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
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();