summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-13 02:58:49 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-13 02:58:49 -0400
commitb134a98e1e86bed00f291c1eb2b6505b4d9a6b64 (patch)
treee5d6cb65efa9646ba752a3872dcba8d9a35c652e /src/filters.cc
parent3f8412f4042239b2babfcd11d1d9544c85d935b2 (diff)
downloadledger-b134a98e1e86bed00f291c1eb2b6505b4d9a6b64.tar.gz
ledger-b134a98e1e86bed00f291c1eb2b6505b4d9a6b64.tar.bz2
ledger-b134a98e1e86bed00f291c1eb2b6505b4d9a6b64.zip
Enabled the --tail and --head options.
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 03063264..4ccdf66c 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -46,6 +46,8 @@ pass_down_xacts::pass_down_xacts(xact_handler_ptr handler,
for (xact_t * xact = iter(); xact; xact = iter())
item_handler<xact_t>::operator()(*xact);
+
+ item_handler<xact_t>::flush();
}
void truncate_entries::flush()
@@ -749,6 +751,8 @@ pass_down_accounts::pass_down_accounts(acct_handler_ptr handler,
for (account_t * account = iter(); account; account = iter())
if (pred(*account))
item_handler<account_t>::operator()(*account);
+
+ item_handler<account_t>::flush();
}
} // namespace ledger