summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-19 02:30:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-19 02:30:56 -0400
commitf62a4906d1a8886fa086f5bd6a41b8597a31b1d4 (patch)
treeaaa5438556cce06457a1493fb6bfdc1e29ebfe68 /walk.cc
parent41604e0ea65cb342aa05074bf39bbbc832c4c86a (diff)
downloadfork-ledger-f62a4906d1a8886fa086f5bd6a41b8597a31b1d4.tar.gz
fork-ledger-f62a4906d1a8886fa086f5bd6a41b8597a31b1d4.tar.bz2
fork-ledger-f62a4906d1a8886fa086f5bd6a41b8597a31b1d4.zip
fix to textual parsing, and a bit of reconstruction in main.cc
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/walk.cc b/walk.cc
index c77647d6..908618b5 100644
--- a/walk.cc
+++ b/walk.cc
@@ -42,7 +42,7 @@ void calc_transactions::operator()(transaction_t * xact)
xact->cost.negate();
}
- last_xact = xact;
+ last_xact = xact;
}
void collapse_transactions::report_cumulative_subtotal()
@@ -59,8 +59,8 @@ void collapse_transactions::report_cumulative_subtotal()
for (amounts_map::const_iterator i = result.amounts.begin();
i != result.amounts.end();
i++) {
- transaction_t * total_xact = new transaction_t(last_entry,
- totals_account);
+ transaction_t * total_xact
+ = new transaction_t(last_entry, totals_account);
xact_temps.push_back(total_xact);
total_xact->amount = (*i).second;