summaryrefslogtreecommitdiff
path: root/src/convert.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-07-19 23:29:41 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-07-19 23:29:41 -0500
commitcf35984971341b8a8688eb02a22bcbc1772991d1 (patch)
tree8defec43b26a6cf9a216dac8b41d79504c32ad93 /src/convert.cc
parent966b6fc359bacad6b22e79fd5afbec0ea80e8d6a (diff)
downloadfork-ledger-cf35984971341b8a8688eb02a22bcbc1772991d1.tar.gz
fork-ledger-cf35984971341b8a8688eb02a22bcbc1772991d1.tar.bz2
fork-ledger-cf35984971341b8a8688eb02a22bcbc1772991d1.zip
Use Boost iterator_facade to create new iterators
Diffstat (limited to 'src/convert.cc')
-rw-r--r--src/convert.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/convert.cc b/src/convert.cc
index 3a9a143d..5d4925c4 100644
--- a/src/convert.cc
+++ b/src/convert.cc
@@ -62,10 +62,10 @@ value_t convert_command(call_scope_t& args)
post_map_t post_map;
xacts_iterator journal_iter(journal);
- while (xact_t * xact = journal_iter()) {
+ while (xact_t * xact = *journal_iter++) {
post_t * post = NULL;
xact_posts_iterator xact_iter(*xact);
- while ((post = xact_iter()) != NULL) {
+ while ((post = *xact_iter++) != NULL) {
if (post->account == bucket)
break;
}
@@ -137,7 +137,7 @@ value_t convert_command(call_scope_t& args)
}
else {
xact_posts_iterator xact_iter(*xact);
- while (post_t * post = xact_iter())
+ while (post_t * post = *xact_iter++)
formatter(*post);
}
}