summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-23 02:11:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-23 02:11:58 -0400
commit1091f0d07b8fae388202a449239e8de321545a2a (patch)
treec96ec5bc1d63f80b31284c502094db969720f741 /format.cc
parent6365b8b7a807351209330ba65b05e612c5901908 (diff)
downloadfork-ledger-1091f0d07b8fae388202a449239e8de321545a2a.tar.gz
fork-ledger-1091f0d07b8fae388202a449239e8de321545a2a.tar.bz2
fork-ledger-1091f0d07b8fae388202a449239e8de321545a2a.zip
slight cleanup
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/format.cc b/format.cc
index 9af56929..add2151d 100644
--- a/format.cc
+++ b/format.cc
@@ -375,6 +375,7 @@ bool format_account::disp_subaccounts_p(const account_t * account,
bool matches = disp_pred(account);
value_t acct_total;
bool computed = false;
+ value_t result;
to_show = NULL;
@@ -384,9 +385,7 @@ bool format_account::disp_subaccounts_p(const account_t * account,
if (! disp_pred((*i).second))
continue;
- value_t result;
format_t::compute_total(result, details_t((*i).second));
-
if (! computed) {
format_t::compute_total(acct_total, details_t(account));
computed = true;