From 59c0692233812eeba568dac735d7b4d4576cf30a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Aug 2004 23:20:10 -0400 Subject: moved display only flags to dflags in both transactions and accounts --- format.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'format.cc') diff --git a/format.cc b/format.cc index 035a2c77..aa1a8e1c 100644 --- a/format.cc +++ b/format.cc @@ -21,7 +21,7 @@ std::string partial_account_name(const account_t * account) for (const account_t * acct = account; acct && acct->parent; acct = acct->parent) { - if (acct->flags & ACCOUNT_DISPLAYED) + if (acct->dflags & ACCOUNT_DISPLAYED) break; if (name.empty()) @@ -289,7 +289,7 @@ void format_t::format_elements(std::ostream& out, for (const account_t * acct = details.account; acct; acct = acct->parent) - if (acct->flags & ACCOUNT_DISPLAYED) { + if (acct->dflags & ACCOUNT_DISPLAYED) { if (elem->min_width > 0 || elem->max_width > 0) out.width(elem->min_width > elem->max_width ? elem->min_width : elem->max_width); @@ -359,7 +359,7 @@ void format_transaction::operator()(transaction_t * xact) const xact->index = last_xact ? last_xact->index + 1 : 0; if (disp_pred_functor(xact)) { - xact->flags |= TRANSACTION_DISPLAYED; + xact->dflags |= TRANSACTION_DISPLAYED; // This makes the assumption that transactions from a single entry // are always grouped together. @@ -432,7 +432,7 @@ void format_account::operator()(account_t * account, if (output && (max_depth == 0 || account->depth <= max_depth)) { format.format_elements(output_stream, details_t(account)); - account->flags |= ACCOUNT_DISPLAYED; + account->dflags |= ACCOUNT_DISPLAYED; } } } -- cgit v1.2.3