diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-03 13:03:10 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-03 13:03:10 -0400 |
commit | 43c4636d9d3a8a3bebc6565b2f1fdd1aebe9849a (patch) | |
tree | b8cd70315ef339c785bffecf83a52826def97914 /src/work.cc | |
parent | 3434650848e500d605447388ef7e069ee1515b72 (diff) | |
download | fork-ledger-43c4636d9d3a8a3bebc6565b2f1fdd1aebe9849a.tar.gz fork-ledger-43c4636d9d3a8a3bebc6565b2f1fdd1aebe9849a.tar.bz2 fork-ledger-43c4636d9d3a8a3bebc6565b2f1fdd1aebe9849a.zip |
Removed the global references to session->report.
Diffstat (limited to 'src/work.cc')
-rw-r--r-- | src/work.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/work.cc b/src/work.cc index e991bc96..a54b1352 100644 --- a/src/work.cc +++ b/src/work.cc @@ -148,13 +148,13 @@ function_t look_for_precommand(report_t& report, const string& verb) return function_t(); } -journal_t * read_journal_files(session_t& session) +journal_t * read_journal_files(session_t& session, const string& account) { INFO_START(journal, "Read journal file"); journal_t * journal(session.create_journal()); - std::size_t count = session.read_data(*journal, session.report->account); + std::size_t count = session.read_data(*journal, account); if (count == 0) throw_(parse_error, "Failed to locate any journal entries; " "did you specify a valid file with -f?"); |