summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-20 02:10:40 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-20 02:10:40 -0500
commit22505d9527edce59cd3cf90c5241e4bd809eb8a2 (patch)
treed943b2dba416a9fbe8619e02a293dfd854fd0869 /src/session.cc
parentdf11ecbbd733068284a19369949bcaa20b0e6e76 (diff)
downloadfork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.tar.gz
fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.tar.bz2
fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.zip
Always call TRACE_CTOR at the end of constructors
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.cc b/src/session.cc
index 5c9e4fd4..9a77d341 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -62,14 +62,14 @@ void set_session_context(session_t * session)
session_t::session_t()
: flush_on_next_data_file(false), journal(new journal_t)
{
- TRACE_CTOR(session_t, "");
-
if (const char * home_var = std::getenv("HOME"))
HANDLER(price_db_).on(none, (path(home_var) / ".pricedb").string());
else
HANDLER(price_db_).on(none, path("./.pricedb").string());
parsing_context.push();
+
+ TRACE_CTOR(session_t, "");
}
std::size_t session_t::read_data(const string& master_account)