summaryrefslogtreecommitdiff
path: root/report.cc
diff options
context:
space:
mode:
Diffstat (limited to 'report.cc')
-rw-r--r--report.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/report.cc b/report.cc
index 5b74806a..cfd2f1cd 100644
--- a/report.cc
+++ b/report.cc
@@ -557,9 +557,9 @@ void print_entry(std::ostream& out, const entry_base_t& entry_base,
#endif
}
-bool disp_subaccounts_p(const account_t& account,
- const optional<item_predicate<account_t> >& disp_pred,
- const account_t *& to_show)
+bool disp_subaccounts_p(const account_t& account,
+ item_predicate<account_t>& disp_pred,
+ const account_t *& to_show)
{
bool display = false;
#if 0
@@ -596,7 +596,7 @@ bool disp_subaccounts_p(const account_t& account,
}
bool display_account(const account_t& account,
- const optional<item_predicate<account_t> >& disp_pred)
+ item_predicate<account_t>& disp_pred)
{
// Never display an account that has already been displayed.
if (account_has_xdata(account) &&
@@ -615,7 +615,7 @@ bool display_account(const account_t& account,
return true;
return (! account_to_show &&
- (! disp_pred || (*disp_pred)(const_cast<account_t&>(account))));
+ disp_pred(const_cast<account_t&>(account)));
}
void format_accounts::operator()(account_t& account)