summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-02-04 22:39:41 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-04 22:39:41 -0500
commit2208ac1226bb3be82be550d465f08fc1dd7c1bae (patch)
tree35ac78b7e439263c24a14c1fe214fd5db61745f9 /src/py_journal.cc
parente0c42ff44352b414e8a6ea3ba735afea98db6d18 (diff)
downloadfork-ledger-2208ac1226bb3be82be550d465f08fc1dd7c1bae.tar.gz
fork-ledger-2208ac1226bb3be82be550d465f08fc1dd7c1bae.tar.bz2
fork-ledger-2208ac1226bb3be82be550d465f08fc1dd7c1bae.zip
Fixes for compilation as C++0x code
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc
index fc4f671b..a06ef8e2 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.cc
@@ -174,8 +174,7 @@ namespace {
report_t& current_report(downcast<report_t>(*scope_t::default_scope));
shared_ptr<collector_wrapper> coll(new collector_wrapper(journal,
current_report));
- std::auto_ptr<journal_t> save_journal
- (current_report.session.journal.release());
+ unique_ptr<journal_t> save_journal(current_report.session.journal.release());
current_report.session.journal.reset(&journal);
try {