summaryrefslogtreecommitdiff
path: root/src/iterators.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-28 01:18:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-28 01:18:27 -0400
commitaa45d2d38cffe09ed2503e0df07bee373cc0e7de (patch)
treeb1ee9eaba7e7ff364e571ba74eb4a02afef9983f /src/iterators.h
parentcc532c31aa8aa745d6d02c5c0cb22b3d75866590 (diff)
downloadfork-ledger-aa45d2d38cffe09ed2503e0df07bee373cc0e7de.tar.gz
fork-ledger-aa45d2d38cffe09ed2503e0df07bee373cc0e7de.tar.bz2
fork-ledger-aa45d2d38cffe09ed2503e0df07bee373cc0e7de.zip
Further improvements to handling temporaries
Diffstat (limited to 'src/iterators.h')
-rw-r--r--src/iterators.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/iterators.h b/src/iterators.h
index a1563539..8aa1b451 100644
--- a/src/iterators.h
+++ b/src/iterators.h
@@ -49,6 +49,7 @@
#include "xact.h"
#include "post.h"
#include "account.h"
+#include "temps.h"
namespace ledger {
@@ -172,9 +173,7 @@ protected:
journal_posts_iterator journal_posts;
xacts_iterator xacts;
xact_posts_iterator posts;
-
- std::list<post_t> post_temps;
- std::list<account_t> acct_temps;
+ temporaries_t temps;
xacts_list xact_temps;
public:
@@ -187,8 +186,6 @@ public:
}
virtual ~posts_commodities_iterator() throw() {
TRACE_DTOR(posts_commodities_iterator);
- foreach (xact_t * xact, xact_temps)
- checked_delete(xact);
}
void reset(journal_t& journal);