summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-07 23:20:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-07 23:20:10 -0400
commit59c0692233812eeba568dac735d7b4d4576cf30a (patch)
tree79c3fa592dc5a57be4c6d2de7a47f1efdbf72562 /walk.h
parenteffa82793fbddce8c04ea9387b7389ac5b8f0a59 (diff)
downloadfork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.tar.gz
fork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.tar.bz2
fork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.zip
moved display only flags to dflags in both transactions and accounts
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/walk.h b/walk.h
index cff0209a..d8224c3d 100644
--- a/walk.h
+++ b/walk.h
@@ -69,11 +69,11 @@ void handle_transaction(transaction_t * xact,
for (transactions_list::iterator i = xact->entry->transactions.begin();
i != xact->entry->transactions.end();
i++)
- if (! ((*i)->flags & (TRANSACTION_AUTO | TRANSACTION_HANDLED)) &&
+ if (! ((*i)->flags & TRANSACTION_AUTO) &&
+ ! ((*i)->dflags & TRANSACTION_HANDLED) &&
(*i == xact ?
- (flags & MATCHING_TRANSACTIONS) :
- (flags & OTHER_TRANSACTIONS))) {
- (*i)->flags |= TRANSACTION_HANDLED;
+ (flags & MATCHING_TRANSACTIONS) : (flags & OTHER_TRANSACTIONS))) {
+ (*i)->dflags |= TRANSACTION_HANDLED;
functor(*i);
}
}
@@ -110,7 +110,7 @@ class clear_flags
{
public:
void operator()(transaction_t * xact) const {
- xact->flags &= ~TRANSACTION_TRANSIENT;
+ xact->dflags = 0;
}
};