summaryrefslogtreecommitdiff
path: root/derive.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-03 21:38:53 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-03 21:38:53 -0400
commitbbdab793029f156425180282e0e7a2a7090c1c4a (patch)
tree55ed87b2ed57b2da5ecf17ca0dd4ac53bd2988c4 /derive.cc
parent3e4b01694070be141728d19f505926b277ac70b3 (diff)
downloadfork-ledger-bbdab793029f156425180282e0e7a2a7090c1c4a.tar.gz
fork-ledger-bbdab793029f156425180282e0e7a2a7090c1c4a.tar.bz2
fork-ledger-bbdab793029f156425180282e0e7a2a7090c1c4a.zip
Rearranged the code a bit, breaking walk.cc into several different files:
compare compare_items<T> handler item_handler<T> iterators used to iterators sets of journal objects filters derived from item_handler, they morph the result set output derived from item_handler, these do the printing Also, created a new 'help' files which contains just Ledger's help text.
Diffstat (limited to 'derive.cc')
-rw-r--r--derive.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/derive.cc b/derive.cc
index f3a2f3e7..dd9dc4ca 100644
--- a/derive.cc
+++ b/derive.cc
@@ -31,7 +31,7 @@
#include "derive.h"
#include "session.h"
-#include "walk.h"
+#include "iterators.h"
namespace ledger {
@@ -96,7 +96,7 @@ entry_t * derive_new_entry(report_t& report,
report.sum_all_accounts();
- value_t total = account_xdata(*acct).total;
+ value_t total = acct->xdata().total;
if (total.is_type(value_t::AMOUNT))
xact->amount.set_commodity(total.as_amount().commodity());
}