diff options
author | John Wiegley <johnw@newartisans.com> | 2005-07-25 20:56:55 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:16 -0400 |
commit | 312f0c27e397d3138e582818d05c21e9f999c9fe (patch) | |
tree | 4d6acdb7b1311d402c24941f8a2834bb69df7196 | |
parent | b1b79de6d458fb31241142bc820ce855c9163f7d (diff) | |
download | fork-ledger-312f0c27e397d3138e582818d05c21e9f999c9fe.tar.gz fork-ledger-312f0c27e397d3138e582818d05c21e9f999c9fe.tar.bz2 fork-ledger-312f0c27e397d3138e582818d05c21e9f999c9fe.zip |
(operator): Rearranged some code and added an assert.
-rw-r--r-- | walk.cc | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -109,10 +109,7 @@ void truncate_entries::flush() void set_account_value::operator()(transaction_t& xact) { - account_t * acct = xact_account(xact); - assert(acct); - - account_xdata_t& xdata = account_xdata(*acct); + account_xdata_t& xdata = account_xdata(*xact.account); add_transaction_to(xact, xdata.value); xdata.count++; |