diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-14 23:38:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-14 23:38:14 -0400 |
commit | 36b96c47ac79fd124d1ba4f53b4721179782985f (patch) | |
tree | 6eb5870893f08fc9e6b968799009430d5992a0b4 /src/filters.cc | |
parent | 50f434a5e341e69edadae2929b53414b2d4de9f2 (diff) | |
download | ledger-36b96c47ac79fd124d1ba4f53b4721179782985f.tar.gz ledger-36b96c47ac79fd124d1ba4f53b4721179782985f.tar.bz2 ledger-36b96c47ac79fd124d1ba4f53b4721179782985f.zip |
Have interval_xacts construct temps on a list
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc index ca6397a8..f97e58d0 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -493,11 +493,13 @@ void interval_xacts::operator()(xact_t& xact) // Generate a null transaction, so the intervening periods can be seen // when -E is used, or if the calculated amount ends up being non-zero - account_t empty_account(NULL, "<Empty>"); - entry_t null_entry; + entry_temps.push_back(entry_t()); + entry_t& null_entry = entry_temps.back(); null_entry.add_flags(ITEM_TEMP); null_entry._date = quant; - xact_t null_xact(&empty_account); + + xact_temps.push_back(xact_t(&empty_account)); + xact_t& null_xact = xact_temps.back(); null_xact.add_flags(ITEM_TEMP); null_xact.amount = 0L; null_entry.add_xact(&null_xact); |