From 7a1d0d46146ecdb79a156ea1197bc3f1bd30cb95 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 10 Aug 2004 17:54:47 -0400 Subject: new debug code; automated transactions now use value expression predicates --- walk.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'walk.h') diff --git a/walk.h b/walk.h index 7ad8264c..f54138df 100644 --- a/walk.h +++ b/walk.h @@ -82,9 +82,9 @@ void handle_transaction(transaction_t * xact, template void walk_entries(entries_list::iterator begin, entries_list::iterator end, - const Function& functor, - const node_t * predicate, - unsigned int flags) + const Function& functor, + const std::string& predicate, + unsigned int flags) { item_predicate pred_functor(predicate); @@ -200,7 +200,7 @@ void for_each_account(account_t * account, const Function& functor) } void calc__accounts(account_t * account, - item_predicate& pred_functor, + const item_predicate& pred_functor, unsigned int flags); inline void sum__accounts(account_t * account) @@ -215,12 +215,12 @@ inline void sum__accounts(account_t * account) } template -void walk_accounts(account_t * account, - const Function& functor, - const node_t * predicate, - unsigned int flags, - const bool calc_subtotals, - const node_t * sort_order = NULL) +void walk_accounts(account_t * account, + const Function& functor, + const std::string& predicate, + unsigned int flags, + const bool calc_subtotals, + const node_t * sort_order = NULL) { item_predicate pred_functor(predicate); -- cgit v1.2.3