summaryrefslogtreecommitdiff
path: root/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'session.h')
-rw-r--r--session.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/session.h b/session.h
index f35accb2..dc78d6f5 100644
--- a/session.h
+++ b/session.h
@@ -39,6 +39,8 @@
namespace ledger {
+class report_t;
+
class session_t : public noncopyable, public scope_t
{
static void initialize();
@@ -50,6 +52,8 @@ class session_t : public noncopyable, public scope_t
public:
static session_t * current;
+ scoped_ptr<report_t> current_report;
+
path data_file;
optional<path> init_file;
optional<path> cache_file;
@@ -89,10 +93,7 @@ public:
mutable accounts_map accounts_cache;
session_t();
-
- virtual ~session_t() {
- TRACE_DTOR(session_t);
- }
+ virtual ~session_t();
journal_t * create_journal() {
journal_t * journal = new journal_t(this);