summaryrefslogtreecommitdiff
path: root/src/iterators.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-09 17:41:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-09 17:41:55 -0400
commit47567307ce2da0d9ac2d5267bd6328a2a30ee7c5 (patch)
treec01745008d39af7ad179e6f65958e9af094b4261 /src/iterators.cc
parent6ca01af594148e12cd8e1da87302644a0bbae3a0 (diff)
downloadfork-ledger-47567307ce2da0d9ac2d5267bd6328a2a30ee7c5.tar.gz
fork-ledger-47567307ce2da0d9ac2d5267bd6328a2a30ee7c5.tar.bz2
fork-ledger-47567307ce2da0d9ac2d5267bd6328a2a30ee7c5.zip
Removed reference to session_t from the iterators module.
Diffstat (limited to 'src/iterators.cc')
-rw-r--r--src/iterators.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/iterators.cc b/src/iterators.cc
index 2d924956..6745f971 100644
--- a/src/iterators.cc
+++ b/src/iterators.cc
@@ -30,15 +30,15 @@
*/
#include "iterators.h"
-#include "session.h"
+#include "journal.h"
#include "compare.h"
namespace ledger {
-void entries_iterator::reset(session_t& session)
+void entries_iterator::reset(journal_t& journal)
{
- entries_i = session.journal->entries.begin();
- entries_end = session.journal->entries.end();
+ entries_i = journal.entries.begin();
+ entries_end = journal.entries.end();
entries_uninitialized = false;
}
@@ -50,16 +50,16 @@ entry_t * entries_iterator::operator()()
return NULL;
}
-void session_xacts_iterator::reset(session_t& session)
+void journal_xacts_iterator::reset(journal_t& journal)
{
- entries.reset(session);
+ entries.reset(journal);
entry_t * entry = entries();
if (entry != NULL)
xacts.reset(*entry);
}
-xact_t * session_xacts_iterator::operator()()
+xact_t * journal_xacts_iterator::operator()()
{
xact_t * xact = xacts();
if (xact == NULL) {