summaryrefslogtreecommitdiff
path: root/src/iterators.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-28 02:34:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-28 02:34:40 -0400
commitbd96928410124e70e70ada7fd05820e2cf781d2c (patch)
treea054e62051e8a2cdb7351f9b166a1fba5d5ba43f /src/iterators.h
parentade0a8b6f3eeb893eda2ae7355d503bf6514f147 (diff)
parent65e8eca6cfd394390c1e2091cf8674a93d2eae2d (diff)
downloadfork-ledger-bd96928410124e70e70ada7fd05820e2cf781d2c.tar.gz
fork-ledger-bd96928410124e70e70ada7fd05820e2cf781d2c.tar.bz2
fork-ledger-bd96928410124e70e70ada7fd05820e2cf781d2c.zip
Merge branch 'next'
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);