diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-12 03:32:10 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-12 03:32:10 -0500 |
commit | b2b0ae37e82fe6c480b7e6527e67cce168687679 (patch) | |
tree | ed7b900dc18bca311f1423d16b5c02bd42d137c3 /src/session.cc | |
parent | b5dca6739687f3672ef0114a70c2f514707dc28b (diff) | |
download | fork-ledger-b2b0ae37e82fe6c480b7e6527e67cce168687679.tar.gz fork-ledger-b2b0ae37e82fe6c480b7e6527e67cce168687679.tar.bz2 fork-ledger-b2b0ae37e82fe6c480b7e6527e67cce168687679.zip |
session_t now holds a std::auto_prt<journal_t>
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.cc b/src/session.cc index 9fb8df46..0d6a6829 100644 --- a/src/session.cc +++ b/src/session.cc @@ -106,7 +106,7 @@ std::size_t session_t::read_data(const string& master_account) if (! (cache && cache->should_load(HANDLER(file_).data_files) && - cache->load(journal))) { + cache->load(*journal.get()))) { #endif // HAVE_BOOST_SERIALIZATION if (price_db_path) { if (exists(*price_db_path)) { @@ -142,8 +142,8 @@ std::size_t session_t::read_data(const string& master_account) assert(xact_count == journal->xacts.size()); #if defined(HAVE_BOOST_SERIALIZATION) - if (cache && cache->should_save(journal)) - cache->save(journal); + if (cache && cache->should_save(*journal.get())) + cache->save(*journal.get()); } #endif // HAVE_BOOST_SERIALIZATION |