diff options
author | John Wiegley <johnw@newartisans.com> | 2011-07-19 23:29:41 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-07-19 23:29:41 -0500 |
commit | cf35984971341b8a8688eb02a22bcbc1772991d1 (patch) | |
tree | 8defec43b26a6cf9a216dac8b41d79504c32ad93 /src/convert.cc | |
parent | 966b6fc359bacad6b22e79fd5afbec0ea80e8d6a (diff) | |
download | fork-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.cc | 6 |
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); } } |