From 8388baafd3e2c6e4b2f76878215d503e8842da27 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 28 Feb 2011 16:24:15 -0500 Subject: Support Boost 1.46 and Boost.Filesystem v3 --- src/timelog.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/timelog.cc') diff --git a/src/timelog.cc b/src/timelog.cc index 698e2420..ee9a0b6c 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -117,21 +117,22 @@ namespace { } } // unnamed namespace -time_log_t::~time_log_t() +void time_log_t::close() { - TRACE_DTOR(time_log_t); - if (! time_xacts.empty()) { std::list accounts; foreach (time_xact_t& time_xact, time_xacts) accounts.push_back(time_xact.account); - foreach (account_t * account, accounts) + foreach (account_t * account, accounts) { + DEBUG("timelog", "Clocking out from account " << account->fullname()); clock_out_from_timelog(time_xacts, time_xact_t(none, CURRENT_TIME(), account), journal, scope); - + if (context_count) + (*context_count)++; + } assert(time_xacts.empty()); } } -- cgit v1.2.3