From 8bd362b5d17782cf8fa5317017a1c5d73d76f1b7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 Jun 2010 05:49:20 -0400 Subject: Minor optimization of how non --empty is handled --- src/output.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/output.cc') diff --git a/src/output.cc b/src/output.cc index f697dee4..5cef19bc 100644 --- a/src/output.cc +++ b/src/output.cc @@ -224,9 +224,11 @@ format_accounts::mark_accounts(account_t& account, const bool flat) if (account.parent && (account.has_xflags(ACCOUNT_EXT_VISITED) || (! flat && visited > 0))) { bind_scope_t bound_scope(report, account); + call_scope_t call_scope(bound_scope); if ((! flat && to_display > 1) || ((flat || to_display != 1 || account.has_xflags(ACCOUNT_EXT_VISITED)) && + (report.HANDLED(empty) || report.fn_display_total(call_scope)) && disp_pred(bound_scope))) { account.xdata().add_flags(ACCOUNT_EXT_TO_DISPLAY); DEBUG("account.display", "Marking account as TO_DISPLAY"); -- cgit v1.2.3