From 2208ac1226bb3be82be550d465f08fc1dd7c1bae Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Feb 2011 22:39:41 -0500 Subject: Fixes for compilation as C++0x code --- src/py_journal.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/py_journal.cc') 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(*scope_t::default_scope)); shared_ptr coll(new collector_wrapper(journal, current_report)); - std::auto_ptr save_journal - (current_report.session.journal.release()); + unique_ptr save_journal(current_report.session.journal.release()); current_report.session.journal.reset(&journal); try { -- cgit v1.2.3